fix test for 2.0
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/60e56d4b Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/60e56d4b Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/60e56d4b Branch: refs/heads/cassandra-2.1 Commit: 60e56d4bebdd7889df88274540d58159b17a3364 Parents: d9cc6c1 Author: Brandon Williams <brandonwilli...@apache.org> Authored: Fri Jul 25 10:58:37 2014 -0500 Committer: Brandon Williams <brandonwilli...@apache.org> Committed: Fri Jul 25 10:58:37 2014 -0500 ---------------------------------------------------------------------- test/unit/org/apache/cassandra/db/RecoveryManagerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/60e56d4b/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java ---------------------------------------------------------------------- diff --git a/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java b/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java index cc24111..f3e8fa7 100644 --- a/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java +++ b/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java @@ -137,7 +137,7 @@ public class RecoveryManagerTest extends SchemaLoader Date date = CommitLogArchiver.format.parse("2112:12:12 12:12:12"); long timeMS = date.getTime(); - Keyspace keyspace1 = Keyspace.open(KEYSPACE1); + Keyspace keyspace1 = Keyspace.open("Keyspace1"); DecoratedKey dk = Util.dk("dkey"); // Col 0 and 9 are the only ones to be recovered @@ -149,9 +149,9 @@ public class RecoveryManagerTest extends SchemaLoader else ts = TimeUnit.MILLISECONDS.toMicros(timeMS + (i * 1000)); - ColumnFamily cf = ArrayBackedSortedColumns.factory.create(KEYSPACE1, "Standard1"); + ColumnFamily cf = ArrayBackedSortedColumns.factory.create("Keyspace1", "Standard1"); cf.addColumn(column("name-" + i, "value", ts)); - Mutation rm = new Mutation(KEYSPACE1, dk.getKey(), cf); + RowMutation rm = new RowMutation("Keyspace1", dk.key, cf); rm.apply(); }