From 9442b7273f8c4cce6cc6fc76f17e95992c834f60 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Mon, 28 Apr 2008 21:09:15 +0000 Subject: fix bigindex property handling in unit tests 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/src/java') diff --git a/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java b/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java index 522148e..0728b44 100644 --- a/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java @@ -43,6 +43,8 @@ import static com.healthmarketscience.jackcess.DatabaseTest.*; */ public class BigIndexTest extends TestCase { + private String _oldBigIndexValue = null; + /** * Creates a new IndexTest 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 -- cgit v1.2.3