cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r765450 - /incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnFamilyStoreTest.java
Date Thu, 16 Apr 2009 02:09:19 GMT
Author: jbellis
Date: Thu Apr 16 02:09:18 2009
New Revision: 765450

URL: http://svn.apache.org/viewvc?rev=765450&view=rev
Log:
make remove test code use the same api that the thrift interface does.  patch by
jbellis; reviewed by Sandeep Tata for #84

Modified:
    incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnFamilyStoreTest.java

Modified: incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnFamilyStoreTest.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnFamilyStoreTest.java?rev=765450&r1=765449&r2=765450&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnFamilyStoreTest.java (original)
+++ incubator/cassandra/trunk/test/org/apache/cassandra/db/ColumnFamilyStoreTest.java Thu
Apr 16 02:09:18 2009
@@ -219,9 +219,7 @@
 
         // remove
         rm = new RowMutation("Table1", "key1");
-        ColumnFamily cf = new ColumnFamily("Standard1");
-        cf.delete(1);
-        rm.add(cf);
+        rm.delete("Standard1:Column1", 1);
         rm.apply();
 
         ColumnFamily retrieved = store.getColumnFamily("key1", "Standard1", new IdentityFilter());
@@ -244,11 +242,7 @@
 
         // remove
         rm = new RowMutation("Table1", "key1");
-        ColumnFamily cf = new ColumnFamily("Super1");
-        SuperColumn sc = new SuperColumn("SC1");
-        sc.markForDeleteAt(1);
-        cf.addColumn(sc);
-        rm.add(cf);
+        rm.delete("Super1:SC1", 1);
         rm.apply();
 
         List<ColumnFamily> families = store.getColumnFamilies("key1", "Super1", new
IdentityFilter());



Mime
View raw message