diff options
author | Dan Rollo <bhamail@users.sf.net> | 2010-03-11 21:54:51 +0000 |
---|---|---|
committer | Dan Rollo <bhamail@users.sf.net> | 2010-03-11 21:54:51 +0000 |
commit | 5186af380ec14b27a4cafa62d95025363a5b9a2e (patch) | |
tree | 575f431003932fe361b99346869b354b2cbd91ed /test/src/java | |
parent | 85f980d47d28ef114c61efc4a8a9dc0c1d3340af (diff) | |
download | jackcess-5186af380ec14b27a4cafa62d95025363a5b9a2e.tar.gz jackcess-5186af380ec14b27a4cafa62d95025363a5b9a2e.zip |
Fix BigIndexTest to work in IDE's w/out sys.prop
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/newformats@438 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java')
-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..1ce4869 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.getProperties().remove(Database.USE_BIG_INDEX_PROPERTY); + } } public void testComplexIndex() throws Exception |