From 5186af380ec14b27a4cafa62d95025363a5b9a2e Mon Sep 17 00:00:00 2001 From: Dan Rollo Date: Thu, 11 Mar 2010 21:54:51 +0000 Subject: 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 --- test/src/java/com/healthmarketscience/jackcess/BigIndexTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/src/java/com') 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 -- cgit v1.2.3