Skip to content

Commit a4fc06e

Browse files
Removing duplicate merge mistakes
1 parent f764d52 commit a4fc06e

1 file changed

Lines changed: 0 additions & 87 deletions

File tree

driver-core/src/test/java/com/datastax/driver/core/PreparedStatementTest.java

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -137,24 +137,6 @@ public void preparedNativeTest2() {
137137
}
138138
}
139139

140-
@Test
141-
public void preparedNativeTest2() {
142-
// Test preparing/bounding for all native types
143-
for (DataType type : DataType.allPrimitiveTypes()) {
144-
// This must be handled separatly
145-
if (exclude(type))
146-
continue;
147-
148-
String name = "c_" + type;
149-
PreparedStatement ps = session.prepare(String.format("INSERT INTO %s(k, %s) VALUES ('prepared_native', ?)", ALL_NATIVE_TABLE, name));
150-
BoundStatement bs = ps.bind();
151-
session.execute(setBoundValue(bs, name, type, getFixedValue2(type)));
152-
153-
Row row = session.execute(String.format("SELECT %s FROM %s WHERE k='prepared_native'", name, ALL_NATIVE_TABLE)).one();
154-
assertEquals("For type " + type, getFixedValue2(type), getValue(row, name, type));
155-
}
156-
}
157-
158140
@Test(groups = "integration")
159141
public void prepareListTest() {
160142
// Test preparing/bounding for all possible list types
@@ -198,26 +180,6 @@ public void prepareListTest2() {
198180
}
199181
}
200182

201-
@Test
202-
public void prepareListTest2() {
203-
// Test preparing/bounding for all possible list types
204-
for (DataType rawType : DataType.allPrimitiveTypes()) {
205-
// This must be handled separatly
206-
if (exclude(rawType))
207-
continue;
208-
209-
String name = "c_list_" + rawType;
210-
DataType type = DataType.list(rawType);
211-
List value = (List)getFixedValue2(type);;
212-
PreparedStatement ps = session.prepare(String.format("INSERT INTO %s(k, %s) VALUES ('prepared_list', ?)", ALL_LIST_TABLE, name));
213-
BoundStatement bs = ps.bind();
214-
session.execute(setBoundValue(bs, name, type, value));
215-
216-
Row row = session.execute(String.format("SELECT %s FROM %s WHERE k='prepared_list'", name, ALL_LIST_TABLE)).one();
217-
assertEquals("For type " + type, value, getValue(row, name, type));
218-
}
219-
}
220-
221183
@Test(groups = "integration")
222184
public void prepareSetTest() {
223185
// Test preparing/bounding for all possible set types
@@ -261,26 +223,6 @@ public void prepareSetTest2() {
261223
}
262224
}
263225

264-
@Test
265-
public void prepareSetTest2() {
266-
// Test preparing/bounding for all possible set types
267-
for (DataType rawType : DataType.allPrimitiveTypes()) {
268-
// This must be handled separatly
269-
if (exclude(rawType))
270-
continue;
271-
272-
String name = "c_set_" + rawType;
273-
DataType type = DataType.set(rawType);
274-
Set value = (Set)getFixedValue2(type);;
275-
PreparedStatement ps = session.prepare(String.format("INSERT INTO %s(k, %s) VALUES ('prepared_set', ?)", ALL_SET_TABLE, name));
276-
BoundStatement bs = ps.bind();
277-
session.execute(setBoundValue(bs, name, type, value));
278-
279-
Row row = session.execute(String.format("SELECT %s FROM %s WHERE k='prepared_set'", name, ALL_SET_TABLE)).one();
280-
assertEquals("For type " + type, value, getValue(row, name, type));
281-
}
282-
}
283-
284226
@Test(groups = "integration")
285227
public void prepareMapTest() {
286228
// Test preparing/bounding for all possible map types
@@ -336,35 +278,6 @@ public void prepareMapTest2() {
336278
}
337279
}
338280

339-
/**
340-
* Almost the same as prepareMapTest, but it uses getFixedValue2() instead.
341-
*/
342-
@Test
343-
public void prepareMapTest2() {
344-
// Test preparing/bounding for all possible map types
345-
for (DataType rawKeyType : DataType.allPrimitiveTypes()) {
346-
// This must be handled separatly
347-
if (exclude(rawKeyType))
348-
continue;
349-
350-
for (DataType rawValueType : DataType.allPrimitiveTypes()) {
351-
// This must be handled separatly
352-
if (exclude(rawValueType))
353-
continue;
354-
355-
String name = "c_map_" + rawKeyType + "_" + rawValueType;
356-
DataType type = DataType.map(rawKeyType, rawValueType);
357-
Map value = (Map)getFixedValue2(type);;
358-
PreparedStatement ps = session.prepare(String.format("INSERT INTO %s(k, %s) VALUES ('prepared_map', ?)", ALL_MAP_TABLE, name));
359-
BoundStatement bs = ps.bind();
360-
session.execute(setBoundValue(bs, name, type, value));
361-
362-
Row row = session.execute(String.format("SELECT %s FROM %s WHERE k='prepared_map'", name, ALL_MAP_TABLE)).one();
363-
assertEquals("For type " + type, value, getValue(row, name, type));
364-
}
365-
}
366-
}
367-
368281
private void reprepareOnNewlyUpNodeTest(String ks, Session session) throws Exception {
369282

370283
ks = ks == null ? "" : ks + ".";

0 commit comments

Comments
 (0)