Repository: incubator-blur
Updated Branches:
  refs/heads/apache-blur-0.2 9e4e999f2 -> 3af855cad


Fixing a problem with the test, where if the tests run in a certain order that 
one of the tests will fail.  In the setup now there is logical to reset the 
blur config to the default which was the problem.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/3af855ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/3af855ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/3af855ca

Branch: refs/heads/apache-blur-0.2
Commit: 3af855cad19de1994f52ed9aeaabdc6c9cea625f
Parents: 9e4e999
Author: Aaron McCurry <[email protected]>
Authored: Sun Mar 9 14:42:55 2014 -0400
Committer: Aaron McCurry <[email protected]>
Committed: Sun Mar 9 14:42:55 2014 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/blur/server/TableContextTest.java    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/3af855ca/blur-core/src/test/java/org/apache/blur/server/TableContextTest.java
----------------------------------------------------------------------
diff --git 
a/blur-core/src/test/java/org/apache/blur/server/TableContextTest.java 
b/blur-core/src/test/java/org/apache/blur/server/TableContextTest.java
index d4c534a..52d57d9 100644
--- a/blur-core/src/test/java/org/apache/blur/server/TableContextTest.java
+++ b/blur-core/src/test/java/org/apache/blur/server/TableContextTest.java
@@ -36,8 +36,9 @@ public class TableContextTest {
   private File file;
 
   @Before
-  public void setup() {
+  public void setup() throws IOException {
     TableContext.clear();
+    TableContext.setSystemBlurConfiguration(new BlurConfiguration());
     base = new File(TMPDIR, "TableContextTest");
     rm(base);
     file = new File(base, name);
@@ -53,8 +54,8 @@ public class TableContextTest {
 
     FieldManager fieldManager = context.getFieldManager();
     try {
-      fieldManager.addColumnDefinition("fam", "col", null, false, "test", 
false, null);
-      fail("should fail because new type is not loaded.");
+      boolean result = fieldManager.addColumnDefinition("fam", "col", null, 
false, "test", false, null);
+      fail("should fail because new type is not loaded [" + result + "].");
     } catch (IllegalArgumentException e) {
 
     }

Reply via email to