Skip to content

Commit

Permalink
Fix KeyspaceTest to work well with the 0.6.0 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rantav committed Apr 8, 2010
1 parent e614402 commit 0912dd0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ public void testFailoverBug8() throws IllegalStateException, PoolExhaustedExcept
// This simulates a host we can connect to, but cannot perform operations on. The host is semi-
// down
doThrow(new TTransportException()).when(h1cassandra).insert(anyString(), anyString(),
(ColumnPath) anyObject(), (byte[]) anyObject(), anyLong(), anyInt());
(ColumnPath) anyObject(), (byte[]) anyObject(), anyLong(), Matchers.<ConsistencyLevel>any());

ks.insert("key", cp, bytes("value"));

Expand Down Expand Up @@ -802,8 +802,8 @@ public void testFailoverBug14() throws IllegalStateException, PoolExhaustedExcep
Map<String, String> keyspace1Desc = new HashMap<String, String>();
keyspace1Desc.put(Keyspace.CF_TYPE, Keyspace.CF_TYPE_STANDARD);
keyspaceDesc.put("Standard1", keyspace1Desc);
int consistencyLevel = 1;
ColumnPath cp = new ColumnPath("Standard1", null, bytes("testFailover"));
ConsistencyLevel consistencyLevel = ConsistencyLevel.ONE;
ColumnPath cp = new ColumnPath("Standard1").setColumn(bytes("testFailover"));
CassandraClientPool clientPools = mock(CassandraClientPool.class);
CassandraClientMonitor monitor = mock(CassandraClientMonitor.class);

Expand Down

0 comments on commit 0912dd0

Please sign in to comment.