@@ -172,8 +172,8 @@ public void whenPutDataIntoTable1_DataShouldBeWrittenIntoCassandra() throws Exec
172172 // Arrange
173173 String namespace = NAMESPACE1 ;
174174 String table = TABLE1 ;
175- Key partitionKey = new Key (COL_NAME1 , 1 );
176- Key clusteringKey = new Key (COL_NAME4 , 4 );
175+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
176+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
177177 Put put =
178178 new Put (partitionKey , clusteringKey )
179179 .withValue (COL_NAME2 , "val2" )
@@ -214,8 +214,8 @@ public void whenPutDataIntoTable2_DataShouldBeWrittenIntoJdbcDatabase()
214214 // Arrange
215215 String namespace = NAMESPACE1 ;
216216 String table = TABLE2 ;
217- Key partitionKey = new Key (COL_NAME1 , 1 );
218- Key clusteringKey = new Key (COL_NAME4 , 4 );
217+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
218+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
219219 Put put =
220220 new Put (partitionKey , clusteringKey )
221221 .withValue (COL_NAME2 , "val2" )
@@ -256,8 +256,8 @@ public void whenPutDataIntoTable3_DataShouldBeWrittenIntoDefaultStorage()
256256 // Arrange
257257 String namespace = NAMESPACE1 ;
258258 String table = TABLE3 ;
259- Key partitionKey = new Key (COL_NAME1 , 1 );
260- Key clusteringKey = new Key (COL_NAME4 , 4 );
259+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
260+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
261261
262262 Put put =
263263 new Put (partitionKey , clusteringKey )
@@ -299,10 +299,10 @@ public void whenScanDataFromTable1_DataShouldBeScannedFromCassandra()
299299 // Arrange
300300 String namespace = NAMESPACE1 ;
301301 String table = TABLE1 ;
302- Key partitionKey = new Key (COL_NAME1 , 1 );
303- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
304- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
305- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
302+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
303+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
304+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
305+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
306306
307307 cassandra .mutate (
308308 Arrays .asList (
@@ -341,10 +341,10 @@ public void whenScanDataFromTable2_DataShouldBeScannedFromJdbcDatabase()
341341 // Arrange
342342 String namespace = NAMESPACE1 ;
343343 String table = TABLE2 ;
344- Key partitionKey = new Key (COL_NAME1 , 1 );
345- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
346- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
347- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
344+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
345+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
346+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
347+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
348348
349349 jdbcDatabase .mutate (
350350 Arrays .asList (
@@ -383,10 +383,10 @@ public void whenScanDataFromTable3_DataShouldBeScannedFromDefaultStorage()
383383 // Arrange
384384 String namespace = NAMESPACE1 ;
385385 String table = TABLE3 ;
386- Key partitionKey = new Key (COL_NAME1 , 1 );
387- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
388- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
389- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
386+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
387+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
388+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
389+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
390390
391391 cassandra .mutate (
392392 Arrays .asList (
@@ -431,8 +431,8 @@ public void whenDeleteDataFromTable1_DataShouldBeDeletedFromCassandra()
431431 // Arrange
432432 String namespace = NAMESPACE1 ;
433433 String table = TABLE1 ;
434- Key partitionKey = new Key (COL_NAME1 , 1 );
435- Key clusteringKey = new Key (COL_NAME4 , 4 );
434+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
435+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
436436 Put put =
437437 new Put (partitionKey , clusteringKey )
438438 .withValue (COL_NAME3 , 3 )
@@ -468,8 +468,8 @@ public void whenDeleteDataFromTable2_DataShouldBeDeletedFromJdbcDatabase()
468468 // Arrange
469469 String namespace = NAMESPACE1 ;
470470 String table = TABLE2 ;
471- Key partitionKey = new Key (COL_NAME1 , 1 );
472- Key clusteringKey = new Key (COL_NAME4 , 4 );
471+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
472+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
473473 Put put =
474474 new Put (partitionKey , clusteringKey )
475475 .withValue (COL_NAME3 , 3 )
@@ -505,8 +505,8 @@ public void whenDeleteDataFromTable3_DataShouldBeDeletedFromDefaultStorage()
505505 // Arrange
506506 String namespace = NAMESPACE1 ;
507507 String table = TABLE3 ;
508- Key partitionKey = new Key (COL_NAME1 , 1 );
509- Key clusteringKey = new Key (COL_NAME4 , 4 );
508+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
509+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
510510 Put put =
511511 new Put (partitionKey , clusteringKey )
512512 .withValue (COL_NAME3 , 3 )
@@ -541,9 +541,9 @@ public void whenMutateDataToTable1_ShouldExecuteForCassandra() throws ExecutionE
541541 // Arrange
542542 String namespace = NAMESPACE1 ;
543543 String table = TABLE1 ;
544- Key partitionKey = new Key (COL_NAME1 , 1 );
545- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
546- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
544+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
545+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
546+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
547547 Put put =
548548 new Put (partitionKey , clusteringKey1 )
549549 .withValue (COL_NAME3 , 3 )
@@ -596,9 +596,9 @@ public void whenMutateDataToTable2_ShouldExecuteForJdbcDatabase() throws Executi
596596 // Arrange
597597 String namespace = NAMESPACE1 ;
598598 String table = TABLE2 ;
599- Key partitionKey = new Key (COL_NAME1 , 1 );
600- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
601- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
599+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
600+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
601+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
602602 Put put =
603603 new Put (partitionKey , clusteringKey1 )
604604 .withValue (COL_NAME3 , 3 )
@@ -651,9 +651,9 @@ public void whenMutateDataToTable3_ShouldExecuteForDefaultStorage() throws Execu
651651 // Arrange
652652 String namespace = NAMESPACE1 ;
653653 String table = TABLE3 ;
654- Key partitionKey = new Key (COL_NAME1 , 1 );
655- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
656- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
654+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
655+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
656+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
657657 Put put =
658658 new Put (partitionKey , clusteringKey1 )
659659 .withValue (COL_NAME3 , 3 )
@@ -707,8 +707,8 @@ public void whenPutDataIntoTable1InNamespace2_DataShouldBeWrittenIntoJdbcDatabas
707707 // Arrange
708708 String namespace = NAMESPACE2 ;
709709 String table = TABLE1 ;
710- Key partitionKey = new Key (COL_NAME1 , 1 );
711- Key clusteringKey = new Key (COL_NAME4 , 4 );
710+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
711+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
712712 Put put =
713713 new Put (partitionKey , clusteringKey )
714714 .withValue (COL_NAME2 , "val2" )
@@ -749,10 +749,10 @@ public void whenScanDataFromTable1InNamespace2_DataShouldBeScannedFromJdbcDataba
749749 // Arrange
750750 String namespace = NAMESPACE2 ;
751751 String table = TABLE1 ;
752- Key partitionKey = new Key (COL_NAME1 , 1 );
753- Key clusteringKey1 = new Key (COL_NAME4 , 0 );
754- Key clusteringKey2 = new Key (COL_NAME4 , 1 );
755- Key clusteringKey3 = new Key (COL_NAME4 , 2 );
752+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
753+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 0 );
754+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 1 );
755+ Key clusteringKey3 = Key . ofInt (COL_NAME4 , 2 );
756756
757757 jdbcDatabase .mutate (
758758 Arrays .asList (
@@ -791,8 +791,8 @@ public void whenDeleteDataFromTable1InNamespace2_DataShouldBeDeletedFromJdbcData
791791 // Arrange
792792 String namespace = NAMESPACE2 ;
793793 String table = TABLE1 ;
794- Key partitionKey = new Key (COL_NAME1 , 1 );
795- Key clusteringKey = new Key (COL_NAME4 , 4 );
794+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
795+ Key clusteringKey = Key . ofInt (COL_NAME4 , 4 );
796796 Put put =
797797 new Put (partitionKey , clusteringKey )
798798 .withValue (COL_NAME3 , 3 )
@@ -828,9 +828,9 @@ public void whenMutateDataToTable1InNamespace2_ShouldExecuteForCassandra()
828828 // Arrange
829829 String namespace = NAMESPACE2 ;
830830 String table = TABLE1 ;
831- Key partitionKey = new Key (COL_NAME1 , 1 );
832- Key clusteringKey1 = new Key (COL_NAME4 , 1 );
833- Key clusteringKey2 = new Key (COL_NAME4 , 2 );
831+ Key partitionKey = Key . ofInt (COL_NAME1 , 1 );
832+ Key clusteringKey1 = Key . ofInt (COL_NAME4 , 1 );
833+ Key clusteringKey2 = Key . ofInt (COL_NAME4 , 2 );
834834 Put put =
835835 new Put (partitionKey , clusteringKey1 )
836836 .withValue (COL_NAME3 , 3 )
0 commit comments