mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#919 - io.ebean package initial
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package org.tests.lib;
|
||||
|
||||
import io.ebeaninternal.server.core.Message;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class TestMessage {
|
||||
|
||||
@Test
|
||||
public void testMessage() {
|
||||
|
||||
String one = "one";
|
||||
String two = "two";
|
||||
|
||||
String m = Message.msg("fetch.error", one, two);
|
||||
assertThat(m).contains("Query threw SQLException:one Query was:");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user