Skip to content

Commit d0cfe22

Browse files
committed
test: use NTS keyspaces in mapping tests
1 parent 44ee468 commit d0cfe22

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

driver-mapping/src/test/java/com/datastax/driver/mapping/MapperKeyspaceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public class MapperKeyspaceTest extends CCMTestsSupport {
3333
@Override
3434
public void onTestContextInitialized() {
3535
execute(
36-
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}",
36+
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 1}",
3737
"CREATE TYPE IF NOT EXISTS MapperKeyspaceTest.address(street text)",
3838
"CREATE TABLE IF NOT EXISTS MapperKeyspaceTest.user(name text PRIMARY KEY, address frozen<address>)",
39-
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest2 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}",
39+
"CREATE KEYSPACE IF NOT EXISTS MapperKeyspaceTest2 WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 1}",
4040
"CREATE TYPE IF NOT EXISTS MapperKeyspaceTest2.address(street text)",
4141
"CREATE TABLE IF NOT EXISTS MapperKeyspaceTest2.user(name text PRIMARY KEY, address frozen<address>)");
4242
}

driver-mapping/src/test/java/com/datastax/driver/mapping/UDTFieldMapperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void udt_and_tables_with_ks_created_in_another_session_should_be_mapped()
4343
// Create type and table
4444
session1.execute(
4545
"create keyspace if not exists java_509 "
46-
+ "with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };");
46+
+ "with replication = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 };");
4747
session1.execute("create type java_509.my_tuple (" + "type text, " + "value text);");
4848
session1.execute(
4949
"create table java_509.my_hash ("
@@ -75,7 +75,7 @@ public void udt_and_tables_without_ks_created_in_another_session_should_be_mappe
7575
Session session1 = cluster1.connect();
7676
session1.execute(
7777
"create keyspace if not exists java_509b "
78-
+ "with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };");
78+
+ "with replication = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 };");
7979
session1.execute("use java_509b");
8080
session1.execute("create type my_tuple (" + "type text, " + "value text);");
8181
session1.execute(

0 commit comments

Comments
 (0)