@@ -61,8 +61,8 @@ public void testCreateListTables() throws Exception {
6161 Assert .assertNotNull (result );
6262
6363 // list result entries
64- List <IonValue > tableNames2 = new ArrayList <IonValue >();
65- result .forEach (tableNames2 :: add );
64+ List <String > tableNames2 = new ArrayList <>();
65+ result .forEach (v -> tableNames2 . add ((( IonString ) v ). stringValue ()) );
6666 Assert .assertTrue (tableNames2 .contains (tableName1 ));
6767 Assert .assertTrue (tableNames2 .contains (tableName2 ));
6868
@@ -91,9 +91,9 @@ public void testCreateListIndexes() throws Exception {
9191
9292 Set <String > result = StreamSupport .stream (indexQueryResult .spliterator (), false )
9393 .map (v -> (IonStruct ) v )
94- .map (s -> s .get ("expr" ). toString ())
94+ .map (s -> (( IonString ) s .get ("expr" )). stringValue ())
9595 .collect (Collectors .toSet ());
96- Assert .assertEquals (new HashSet <String >(Arrays .asList ("\" [attr1]\" " )), result );
96+ Assert .assertEquals (new HashSet <>(Arrays .asList ("[attr1]" )), result );
9797
9898 // clean up
9999 cleanUp (ledgerName );
@@ -126,7 +126,7 @@ public void testUpdateQueryDataTypes() throws Exception {
126126 }
127127 });
128128
129- wallet .setDescription ("my business wallet" );
129+ wallet .setDescription ("my test wallet" );
130130 wallet .setBalance (26.12d );
131131 wallet .setTags (ImmutableMap .of ());
132132 wallet .setType (WalletType .BUSINESS );
@@ -254,8 +254,6 @@ private void createLedgerAndTables(String ledgerName, String ... tableNames) thr
254254 Assert .assertEquals (ledger .name (), ledgerName );
255255
256256 QldbDriver driver = getDriver (ledgerName );
257-
258- // create tables
259257 for (String tableName : tableNames ) {
260258 driver .execute (txn -> { return txn .execute ("CREATE TABLE " + tableName ); });
261259 }
0 commit comments