@@ -32,7 +32,7 @@ public void prepareLogging() {
3232 @ Timeout (15 )
3333 @ BeforeAll
3434 public void prepare () {
35- log . info ("Preparing test case..." );
35+ System . out . println ("Preparing test case..." );
3636
3737 String host = System .getenv ("D_MYSQL_HOST" );
3838
@@ -48,58 +48,56 @@ public void prepare() {
4848 .withDriver ("com.mysql.cj.jdbc.Driver" )
4949 .build (options );
5050
51- log . info ("Connection prepared, connecting..." );
51+ System . out . println ("Connection prepared, connecting..." );
5252
5353 assertEquals (endpoint .buildJdbc (), String .format ("jdbc:mysql://%s:3306/test" , host ));
5454 assertTrue (connection .connect ());
5555 assertTrue (connection .isConnected ());
5656
57- log .info ("Connection established, preparing tables..." );
58-
59- System .out .println ("Connection established" );
57+ System .out .println ("Connection established, preparing tables..." );
6058
6159 assertNull (connection .exec (() -> "CREATE TABLE IF NOT EXISTS users (nickname VARCHAR(16) PRIMARY KEY NOT NULL, points INT NOT NULL);" ).getRejectMessage ());
6260
63- log . info ("Tables prepared, test cases ready" );
61+ System . out . println ("Tables prepared, test cases ready" );
6462 }
6563
6664 @ Timeout (5 )
6765 @ AfterAll
6866 public void close () {
69- log . info ("Closing connection..." );
67+ System . out . println ("Closing connection..." );
7068 connection .disconnect ();
71- log . info ("Connection closed" );
69+ System . out . println ("Connection closed" );
7270 }
7371
7472 @ Timeout (10 )
7573 @ Test
7674 public void testUpsert () {
77- log . info ("Testing upsert (save)..." );
75+ System . out . println ("Testing upsert (save)..." );
7876 assertTrue (connection .save ("users" , user1 ).isSuccessful ());
79- log . info ("Save successful" );
80- log . info ("Testing upsert..." );
77+ System . out . println ("Save successful" );
78+ System . out . println ("Testing upsert..." );
8179 assertTrue (connection .upsert ()
8280 .into ("users" , "nickname" , "points" )
8381 .values (user2 .getNickname (), user2 .getPoints ())
8482 .onDuplicateKey ()
8583 .and ("nickname" , user2 .getNickname ())
8684 .and ("points" , user2 .getPoints ())
8785 .execute ().isSuccessful ());
88- log . info ("Upsert successful" );
86+ System . out . println ("Upsert successful" );
8987 }
9088
9189 @ Timeout (10 )
9290 @ Test
9391 public void testSelect () {
94- log . info ("Testing select..." );
92+ System . out . println ("Testing select..." );
9593 QueryRowsResult <User > result = connection .query (Select .of ().from ("users" )
9694 .where ()
9795 .isEqual ("nickname" , "User1" ), User .class );
9896
9997 assertTrue (result .isSuccessful ());
10098 assertEquals (1 , result .size ());
10199 assertEquals (user1 , result .get (0 ));
102- log . info ("Select successful" );
100+ System . out . println ("Select successful" );
103101 }
104102
105103 private static class User {
0 commit comments