File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
ebean-test/src/test/java/org/tests/basic Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 77
88import jakarta .persistence .PersistenceException ;
99
10- import static org .junit . jupiter .api .Assertions .assertTrue ;
10+ import static org .assertj . core .api .Assertions .assertThat ;
1111
12- public class TestErrorBindLog extends BaseTestCase {
12+ class TestErrorBindLog extends BaseTestCase {
1313
1414 @ Test
15- public void test () {
16-
15+ void test () {
1716 try {
1817 DB .find (Order .class ).where ().gt ("id" , "JUNK" ).findList ();
19-
2018 } catch (PersistenceException e ) {
2119 String msg = e .getMessage ();
2220 if (isHana ()) {
23- assertTrue (msg .contains ("Error with property[1] dt[12]data[JUNK]" ));
24- }
25- else {
26- assertTrue (msg .contains ("Bind values:" ));
21+ assertThat (msg ).contains ("Error with property[1] dt[12]data[JUNK]" );
22+ } else {
23+ assertThat (msg ).contains ("Bind values:" );
2724 }
2825 }
2926 }
You can’t perform that action at this time.
0 commit comments