You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by vi...@apache.org on 2012/01/09 17:30:05 UTC

svn commit: r1229240 - /incubator/accumulo/branches/1.4/src/wikisearch/query/src/test/java/org/apache/accumulo/wikisearch/logic/TestQueryLogic.java

Author: vines
Date: Mon Jan  9 16:30:05 2012
New Revision: 1229240

URL: http://svn.apache.org/viewvc?rev=1229240&view=rev
Log:
ACCUMULO-217 - updating test to work with changes

Modified:
    incubator/accumulo/branches/1.4/src/wikisearch/query/src/test/java/org/apache/accumulo/wikisearch/logic/TestQueryLogic.java

Modified: incubator/accumulo/branches/1.4/src/wikisearch/query/src/test/java/org/apache/accumulo/wikisearch/logic/TestQueryLogic.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/wikisearch/query/src/test/java/org/apache/accumulo/wikisearch/logic/TestQueryLogic.java?rev=1229240&r1=1229239&r2=1229240&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/wikisearch/query/src/test/java/org/apache/accumulo/wikisearch/logic/TestQueryLogic.java (original)
+++ incubator/accumulo/branches/1.4/src/wikisearch/query/src/test/java/org/apache/accumulo/wikisearch/logic/TestQueryLogic.java Mon Jan  9 16:30:05 2012
@@ -30,6 +30,7 @@ import org.apache.accumulo.core.client.B
 import org.apache.accumulo.core.client.Connector;
 import org.apache.accumulo.core.client.MutationsRejectedException;
 import org.apache.accumulo.core.client.Scanner;
+import org.apache.accumulo.core.client.TableNotFoundException;
 import org.apache.accumulo.core.client.mock.MockInstance;
 import org.apache.accumulo.core.data.Key;
 import org.apache.accumulo.core.data.Mutation;
@@ -114,10 +115,22 @@ public class TestQueryLogic {
     
     MockInstance i = new MockInstance();
     c = i.getConnector("root", "pass");
-    c.tableOperations().delete(METADATA_TABLE_NAME);
-    c.tableOperations().delete(TABLE_NAME);
-    c.tableOperations().delete(INDEX_TABLE_NAME);
-    c.tableOperations().delete(RINDEX_TABLE_NAME);
+    try{
+      c.tableOperations().delete(METADATA_TABLE_NAME);
+    } catch (TableNotFoundException tnfe) {}
+    ;
+    try{
+      c.tableOperations().delete(TABLE_NAME);
+    } catch (TableNotFoundException tnfe) {}
+    ;
+    try{
+      c.tableOperations().delete(INDEX_TABLE_NAME);
+    } catch (TableNotFoundException tnfe) {}
+    ;
+    try{
+      c.tableOperations().delete(RINDEX_TABLE_NAME);
+    } catch (TableNotFoundException tnfe) {}
+    ;
     c.tableOperations().create(METADATA_TABLE_NAME);
     c.tableOperations().create(TABLE_NAME);
     c.tableOperations().create(INDEX_TABLE_NAME);