hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r789141 - /hadoop/hbase/trunk/src/contrib/stargate/src/test/org/apache/hadoop/hbase/stargate/TestRowResource.java
Date Sun, 28 Jun 2009 19:25:10 GMT
Author: apurtell
Date: Sun Jun 28 19:25:10 2009
New Revision: 789141

URL: http://svn.apache.org/viewvc?rev=789141&view=rev
Log:
working TestRowResource

Modified:
    hadoop/hbase/trunk/src/contrib/stargate/src/test/org/apache/hadoop/hbase/stargate/TestRowResource.java

Modified: hadoop/hbase/trunk/src/contrib/stargate/src/test/org/apache/hadoop/hbase/stargate/TestRowResource.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/contrib/stargate/src/test/org/apache/hadoop/hbase/stargate/TestRowResource.java?rev=789141&r1=789140&r2=789141&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/contrib/stargate/src/test/org/apache/hadoop/hbase/stargate/TestRowResource.java
(original)
+++ hadoop/hbase/trunk/src/contrib/stargate/src/test/org/apache/hadoop/hbase/stargate/TestRowResource.java
Sun Jun 28 19:25:10 2009
@@ -217,7 +217,6 @@
 
     response = putValueXML(TABLE, ROW_1, COLUMN_2, VALUE_1);
     assertEquals(response.getCode(), 200);
-
     response = deleteValue(TABLE, ROW_1, COLUMN_1);
     assertEquals(response.getCode(), 200);
     response = getValueXML(TABLE, ROW_1, COLUMN_1);
@@ -229,20 +228,22 @@
   }
 
   public void testSingleCellGetPutPB() throws IOException, JAXBException {
-    Response response = getValuePB(TABLE, ROW_2, COLUMN_1);
+    Response response = getValuePB(TABLE, ROW_1, COLUMN_1);
     assertEquals(response.getCode(), 404);
 
-    response = putValuePB(TABLE, ROW_2, COLUMN_1, VALUE_1);
+    response = putValuePB(TABLE, ROW_1, COLUMN_1, VALUE_1);
     assertEquals(response.getCode(), 200);
-    checkValuePB(TABLE, ROW_2, COLUMN_1, VALUE_1);
+    checkValuePB(TABLE, ROW_1, COLUMN_1, VALUE_1);
 
-    response = putValuePB(TABLE, ROW_2, COLUMN_2, VALUE_1);
+    response = putValuePB(TABLE, ROW_1, COLUMN_2, VALUE_1);
     assertEquals(response.getCode(), 200);
-    response = putValuePB(TABLE, ROW_2, COLUMN_2, VALUE_2);
+    response = deleteValue(TABLE, ROW_1, COLUMN_1);
     assertEquals(response.getCode(), 200);
-    checkValuePB(TABLE, ROW_2, COLUMN_2, VALUE_2);
+    response = getValuePB(TABLE, ROW_1, COLUMN_1);
+    assertEquals(response.getCode(), 404);
+    checkValuePB(TABLE, ROW_1, COLUMN_2, VALUE_1);
 
-    response = deleteRow(TABLE, ROW_2);
+    response = deleteRow(TABLE, ROW_1);
     assertEquals(response.getCode(), 200);    
   }
 



Mime
View raw message