@@ -183,8 +183,8 @@ public void whenPutDataIntoTable1_DataShouldBeWrittenIntoCassandra() throws Exec
183183 // Arrange
184184 String namespace = NAMESPACE1 ;
185185 String table = TABLE1 ;
186- Key partitionKey = new Key (COL_NAME1 , 1 );
187- Key clusteringKey = new Key (COL_NAME4 , 4 );
186+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
187+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
188188 Put put =
189189 new Put (partitionKey , clusteringKey )
190190 .withValue (COL_NAME2 , "val2" )
@@ -225,8 +225,8 @@ public void whenPutDataIntoTable2_DataShouldBeWrittenIntoJdbcDatabase()
225225 // Arrange
226226 String namespace = NAMESPACE1 ;
227227 String table = TABLE2 ;
228- Key partitionKey = new Key (COL_NAME1 , 1 );
229- Key clusteringKey = new Key (COL_NAME4 , 4 );
228+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
229+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
230230 Put put =
231231 new Put (partitionKey , clusteringKey )
232232 .withValue (COL_NAME2 , "val2" )
@@ -267,8 +267,8 @@ public void whenPutDataIntoTable3_DataShouldBeWrittenIntoDefaultStorage()
267267 // Arrange
268268 String namespace = NAMESPACE1 ;
269269 String table = TABLE3 ;
270- Key partitionKey = new Key (COL_NAME1 , 1 );
271- Key clusteringKey = new Key (COL_NAME4 , 4 );
270+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
271+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
272272
273273 Put put =
274274 new Put (partitionKey , clusteringKey )
@@ -310,10 +310,10 @@ public void whenScanDataFromTable1_DataShouldBeScannedFromCassandra()
310310 // Arrange
311311 String namespace = NAMESPACE1 ;
312312 String table = TABLE1 ;
313- Key partitionKey = new Key (COL_NAME1 , 1 );
314- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
315- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
316- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
313+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
314+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
315+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
316+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
317317
318318 cassandra .mutate (
319319 Arrays .asList (
@@ -352,10 +352,10 @@ public void whenScanDataFromTable2_DataShouldBeScannedFromJdbcDatabase()
352352 // Arrange
353353 String namespace = NAMESPACE1 ;
354354 String table = TABLE2 ;
355- Key partitionKey = new Key (COL_NAME1 , 1 );
356- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
357- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
358- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
355+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
356+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
357+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
358+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
359359
360360 jdbcDatabase .mutate (
361361 Arrays .asList (
@@ -394,10 +394,10 @@ public void whenScanDataFromTable3_DataShouldBeScannedFromDefaultStorage()
394394 // Arrange
395395 String namespace = NAMESPACE1 ;
396396 String table = TABLE3 ;
397- Key partitionKey = new Key (COL_NAME1 , 1 );
398- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
399- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
400- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
397+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
398+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
399+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
400+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
401401
402402 cassandra .mutate (
403403 Arrays .asList (
@@ -442,8 +442,8 @@ public void whenDeleteDataFromTable1_DataShouldBeDeletedFromCassandra()
442442 // Arrange
443443 String namespace = NAMESPACE1 ;
444444 String table = TABLE1 ;
445- Key partitionKey = new Key (COL_NAME1 , 1 );
446- Key clusteringKey = new Key (COL_NAME4 , 4 );
445+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
446+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
447447 Put put =
448448 new Put (partitionKey , clusteringKey )
449449 .withValue (COL_NAME3 , 3 )
@@ -479,8 +479,8 @@ public void whenDeleteDataFromTable2_DataShouldBeDeletedFromJdbcDatabase()
479479 // Arrange
480480 String namespace = NAMESPACE1 ;
481481 String table = TABLE2 ;
482- Key partitionKey = new Key (COL_NAME1 , 1 );
483- Key clusteringKey = new Key (COL_NAME4 , 4 );
482+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
483+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
484484 Put put =
485485 new Put (partitionKey , clusteringKey )
486486 .withValue (COL_NAME3 , 3 )
@@ -516,8 +516,8 @@ public void whenDeleteDataFromTable3_DataShouldBeDeletedFromDefaultStorage()
516516 // Arrange
517517 String namespace = NAMESPACE1 ;
518518 String table = TABLE3 ;
519- Key partitionKey = new Key (COL_NAME1 , 1 );
520- Key clusteringKey = new Key (COL_NAME4 , 4 );
519+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
520+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
521521 Put put =
522522 new Put (partitionKey , clusteringKey )
523523 .withValue (COL_NAME3 , 3 )
@@ -552,9 +552,9 @@ public void whenMutateDataToTable1_ShouldExecuteForCassandra() throws ExecutionE
552552 // Arrange
553553 String namespace = NAMESPACE1 ;
554554 String table = TABLE1 ;
555- Key partitionKey = new Key (COL_NAME1 , 1 );
556- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
557- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
555+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
556+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
557+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
558558 Put put =
559559 new Put (partitionKey , clusteringKey1 )
560560 .withValue (COL_NAME3 , 3 )
@@ -607,9 +607,9 @@ public void whenMutateDataToTable2_ShouldExecuteForJdbcDatabase() throws Executi
607607 // Arrange
608608 String namespace = NAMESPACE1 ;
609609 String table = TABLE2 ;
610- Key partitionKey = new Key (COL_NAME1 , 1 );
611- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
612- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
610+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
611+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
612+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
613613 Put put =
614614 new Put (partitionKey , clusteringKey1 )
615615 .withValue (COL_NAME3 , 3 )
@@ -662,9 +662,9 @@ public void whenMutateDataToTable3_ShouldExecuteForDefaultStorage() throws Execu
662662 // Arrange
663663 String namespace = NAMESPACE1 ;
664664 String table = TABLE3 ;
665- Key partitionKey = new Key (COL_NAME1 , 1 );
666- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
667- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
665+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
666+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
667+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
668668 Put put =
669669 new Put (partitionKey , clusteringKey1 )
670670 .withValue (COL_NAME3 , 3 )
@@ -718,8 +718,8 @@ public void whenPutDataIntoTable1InNamespace2_DataShouldBeWrittenIntoJdbcDatabas
718718 // Arrange
719719 String namespace = NAMESPACE2 ;
720720 String table = TABLE1 ;
721- Key partitionKey = new Key (COL_NAME1 , 1 );
722- Key clusteringKey = new Key (COL_NAME4 , 4 );
721+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
722+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
723723 Put put =
724724 new Put (partitionKey , clusteringKey )
725725 .withValue (COL_NAME2 , "val2" )
@@ -760,10 +760,10 @@ public void whenScanDataFromTable1InNamespace2_DataShouldBeScannedFromJdbcDataba
760760 // Arrange
761761 String namespace = NAMESPACE2 ;
762762 String table = TABLE1 ;
763- Key partitionKey = new Key (COL_NAME1 , 1 );
764- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
765- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
766- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
763+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
764+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
765+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
766+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
767767
768768 jdbcDatabase .mutate (
769769 Arrays .asList (
@@ -802,8 +802,8 @@ public void whenDeleteDataFromTable1InNamespace2_DataShouldBeDeletedFromJdbcData
802802 // Arrange
803803 String namespace = NAMESPACE2 ;
804804 String table = TABLE1 ;
805- Key partitionKey = new Key (COL_NAME1 , 1 );
806- Key clusteringKey = new Key (COL_NAME4 , 4 );
805+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
806+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
807807 Put put =
808808 new Put (partitionKey , clusteringKey )
809809 .withValue (COL_NAME3 , 3 )
@@ -839,9 +839,9 @@ public void whenMutateDataToTable1InNamespace2_ShouldExecuteForCassandra()
839839 // Arrange
840840 String namespace = NAMESPACE2 ;
841841 String table = TABLE1 ;
842- Key partitionKey = new Key (COL_NAME1 , 1 );
843- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
844- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
842+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
843+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
844+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
845845 Put put =
846846 new Put (partitionKey , clusteringKey1 )
847847 .withValue (COL_NAME3 , 3 )
0 commit comments