Elffuss BraidHub

kikocis/java-driver public

Remove reprepareOnNewlyUpNodeTest (replaced by QueryOptionsTest tests).
Changesetf8ced6fc4e9a14ae6f88d27ed8657f053ee58d201a8b843001e2d0e71a1131e4
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-08-18 21:49 -05:00
Committerolim7t <omichallat+github@gmail.com> · 2015-08-20 15:18 +02:00
Parentse866af248367

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/PreparedStatementTest.java +0 −41
@@ -299,47 +299,6 @@
299299 }
300300 }
301301
302- private void reprepareOnNewlyUpNodeTest(String ks, Session session) throws Exception {
303-
304- ks = ks == null ? "" : ks + '.';
305-
306- session.execute("INSERT INTO " + ks + "test (k, i) VALUES ('123', 17)");
307- session.execute("INSERT INTO " + ks + "test (k, i) VALUES ('124', 18)");
308-
309- PreparedStatement ps = session.prepare("SELECT * FROM " + ks + "test WHERE k = ?");
310-
311- assertEquals(session.execute(ps.bind("123")).one().getInt("i"), 17);
312-
313- ccmBridge.stop();
314- waitForDown(CCMBridge.IP_PREFIX + '1', cluster);
315-
316- ccmBridge.start();
317- waitFor(CCMBridge.IP_PREFIX + '1', cluster, 120);
318-
319- try
320- {
321- assertEquals(session.execute(ps.bind("124")).one().getInt("i"), 18);
322- }
323- catch (NoHostAvailableException e)
324- {
325- System.out.println(">> " + e.getErrors());
326- throw e;
327- }
328- }
329-
330- @Test(groups = "long", priority = Integer.MAX_VALUE)
331- public void reprepareOnNewlyUpNodeTest() throws Exception {
332- reprepareOnNewlyUpNodeTest(null, session);
333- }
334-
335- @Test(groups = "long", priority = Integer.MAX_VALUE)
336- public void reprepareOnNewlyUpNodeNoKeyspaceTest() throws Exception {
337-
338- // This is the same test than reprepareOnNewlyUpNodeTest, except that the
339- // prepared statement is prepared while no current keyspace is used
340- reprepareOnNewlyUpNodeTest(keyspace, cluster.connect());
341- }
342-
343302 @Test(groups = "short")
344303 public void prepareWithNullValuesTest() throws Exception {
345304