]> source.dussan.org Git - jackcess.git/commitdiff
fix bigindex property handling in unit tests
authorJames Ahlborn <jtahlborn@yahoo.com>
Mon, 28 Apr 2008 21:09:15 +0000 (21:09 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Mon, 28 Apr 2008 21:09:15 +0000 (21:09 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@341 f203690c-595d-4dc9-a70b-905162fa7fd2

test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java

index 522148e49de540a1adca502ac62eb06c69414394..0728b44bd9cb3bfd02c95cc365803687b1cf3a77 100644 (file)
@@ -43,6 +43,8 @@ import static com.healthmarketscience.jackcess.DatabaseTest.*;
  */
 public class BigIndexTest extends TestCase {
 
+  private String _oldBigIndexValue = null;
+  
   /**
    * Creates a new <code>IndexTest</code> instance.
    *
@@ -53,13 +55,14 @@ public class BigIndexTest extends TestCase {
 
   @Override
   protected void setUp() {
+    _oldBigIndexValue = System.getProperty(Database.USE_BIG_INDEX_PROPERTY);
     System.setProperty(Database.USE_BIG_INDEX_PROPERTY,
                        Boolean.TRUE.toString());
   }
   
   @Override
   protected void tearDown() {
-    System.clearProperty(Database.USE_BIG_INDEX_PROPERTY);
+    System.setProperty(Database.USE_BIG_INDEX_PROPERTY, _oldBigIndexValue);
   }
   
   public void testComplexIndex() throws Exception