File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
javasource/databaseconnectortest/test Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77import static org .mockito .Mockito .when ;
88
99import java .math .BigDecimal ;
10+ import java .nio .charset .StandardCharsets ;
1011import java .sql .ResultSet ;
1112import java .sql .ResultSetMetaData ;
1213import java .sql .SQLException ;
@@ -200,7 +201,7 @@ public void testAllTypes() throws SQLException {
200201 assertEquals (new BigDecimal ("123" ), record .get ("Decimal" ).get ());
201202 assertEquals ("A1" , record .get ("Enum" ).get ());
202203 assertEquals ("A2" , record .get ("String" ).get ());
203- assertEquals ("привет мир" , new String ((byte []) record .get ("Binary" ).get ()));
204+ assertEquals ("привет мир" , new String ((byte []) record .get ("Binary" ).get (), StandardCharsets . UTF_8 ));
204205 assertEquals (new Date (0L ), record .get ("DateTime" ).get ());
205206 }
206207
You can’t perform that action at this time.
0 commit comments