diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2010-03-12 00:44:56 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2010-03-12 00:44:56 +0000 |
commit | ade82911c7fcb2761f9d22353c2acd09c8186423 (patch) | |
tree | 28c538b41c7091b3ce131cc9e6dfba1bffc65f00 /test | |
parent | 4661de7ff6513cc1f823da0a472f99dbdf1d642f (diff) | |
download | jackcess-ade82911c7fcb2761f9d22353c2acd09c8186423.tar.gz jackcess-ade82911c7fcb2761f9d22353c2acd09c8186423.zip |
Fix BigIndexTest to work in IDEs w/out sys.prop
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@440 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java b/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java index 212bae8..f874aec 100644 --- a/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java @@ -58,7 +58,11 @@ public class BigIndexTest extends TestCase { @Override protected void tearDown() { - System.setProperty(Database.USE_BIG_INDEX_PROPERTY, _oldBigIndexValue); + if (_oldBigIndexValue != null) { + System.setProperty(Database.USE_BIG_INDEX_PROPERTY, _oldBigIndexValue); + } else { + System.clearProperty(Database.USE_BIG_INDEX_PROPERTY); + } } public void testComplexIndex() throws Exception |