e.printStackTrace(); fail(e.getMessage());
fail("unexpected exception", e);
	public void testReadOnly() {		File testDir = new File(base, "readOnlyManager");		String fileName = "testReadOnly";		testDir.mkdirs();		String[] files = testDir.list();		assertEquals(files.length, 0);		manager1 = new FileManager(testDir, null, true);		try {			manager1.open(true);		} catch(IOException e) {			e.printStackTrace();			fail(e.getMessage());		}		files = testDir.list();		assertEquals(files.length, 0);		try {			manager1.add(fileName);			fail("add succedded");		} catch(IOException e) {			//good		}				try {			manager1.lookup(fileName, true);			fail("lookup succedded");		} catch(IOException e) {			//good		}				try {			manager1.createTempFile(fileName);			fail("create temp file succedded");		} catch(IOException e) {			//good		}		files = testDir.list();		assertEquals(files.length, 0);		manager1.close();		manager1 = null;		try {			// lets create a file in a writable file manager			manager2 = new FileManager(testDir, null, false);			manager2.open(true);			manager2.lookup(fileName, true);			File tmpFile = manager2.createTempFile(fileName);			writeToFile(tmpFile, "This file exists");			manager2.update(new String[] {fileName}, new String[] {tmpFile.getName()});			manager2.close();			manager2 = null;		} catch(IOException e) {			e.printStackTrace();			fail(e.getMessage());		}			}