e.printStackTrace(); fail(e.getMessage());
fail("unexepected exception", e);
	private void testAbortSet(boolean reliable) {		File mgrDir;		if (reliable)			mgrDir = new File(base, "abortSetReliable");		else			mgrDir = new File(base, "abortSetStd");		String fileName1 = "test1.txt";		String fileName2 = "test2.txt";		String fileName3 = "test3.txt";		String fileName4 = "test4.txt";		String contents1 = "test reliable file contents #1";		String contents2 = "test reliable file contents #2";		try {			mgrDir.mkdirs();			String[] list = mgrDir.list();			assertEquals(0, list.length);			manager1 = new FileManager(mgrDir, null);			StreamManager stream1 = new StreamManager(manager1);			stream1.setUseReliableFiles(reliable); // force reliable files			manager1.open(true);			StreamManagerOutputStream[] outs = stream1.getOutputStreamSet(new String[] {fileName1, fileName2, fileName3, fileName4});			assertNotNull(outs);						outs[0].write(contents1.getBytes());			outs[1].write(contents2.getBytes());			outs[2].write(contents2.getBytes());			outs[3].write(contents1.getBytes());			//sanity check			list = mgrDir.list();			assertEquals(5, list.length);			outs[2].close();			outs[1].abort();			outs[0].close(); //noop			outs[3].close(); //noop			outs[2].close(); //noop			outs[1].close(); //noop			list = mgrDir.list();			assertEquals(1, list.length);			assertNull(manager1.lookup(fileName1, false));			assertNull(manager1.lookup(fileName2, false));			assertNull(manager1.lookup(fileName3, false));			assertNull(manager1.lookup(fileName4, false));			manager1.close();			manager1 = null;			stream1 = null;						// open a new manager & check the same thing to ensure the database is correct			manager2 = new FileManager(mgrDir, null);			manager2.open(true);			StreamManager stream2 = new StreamManager(manager2);			//create version 1			stream2.setUseReliableFiles(reliable); // force reliable files			assertNull(manager2.lookup(fileName1, false));			assertNull(manager2.lookup(fileName2, false));			assertNull(manager2.lookup(fileName3, false));			assertNull(manager2.lookup(fileName4, false));			list = mgrDir.list();			assertEquals(1, list.length);			manager2.close();			manager2 = null;			stream2 = null;				} catch(IOException e) {			e.printStackTrace();			fail(e.getMessage());		}	}