Force OPOIFS test to explicitly create OPOIFS instance

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681802 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2015-05-26 17:59:13 +00:00
parent e4b6cb6811
commit 8878be359a

View File

@ -67,9 +67,9 @@ public final class TestFileSystemBugs extends TestCase {
if (openedFSs == null) openedFSs = new ArrayList<NPOIFSFileSystem>(); if (openedFSs == null) openedFSs = new ArrayList<NPOIFSFileSystem>();
openedFSs.add(nfs); openedFSs.add(nfs);
POIFSFileSystem ofs = null; OPOIFSFileSystem ofs = null;
try { try {
ofs = new POIFSFileSystem(inps[1]); ofs = new OPOIFSFileSystem(inps[1]);
if (oldFails) fail("POIFSFileSystem should have failed but didn't"); if (oldFails) fail("POIFSFileSystem should have failed but didn't");
} catch (Exception e) { } catch (Exception e) {
if (!oldFails) throw e; if (!oldFails) throw e;