public void testFileManagerLocatorZip() { FileManager fileManager = new FileManager() ; try { fileManager.addLocatorZip(zipname) ; } catch (Exception ex) { fail("Failed to create a filemanager and add a zip locator") ; } InputStream in = fileManager.open(filename) ; assertNotNull(in) ; closeInputStream(in) ; }
public void testFileManagerLocatorZipNonFound() { FileManager fileManager = new FileManager() ; try { fileManager.addLocatorZip(zipname) ; } catch (Exception ex) { fail("Failed to create a filemanager and add a zip locator") ; } try { InputStream in = fileManager.open(filenameNonExistent) ; closeInputStream(in) ; assertNull("Found non-existant zip file member", in) ; } catch (NotFoundException ex) {} }
public void testFileManagerLocatorZip() { FileManager fileManager = new FileManager() ; try { fileManager.addLocatorZip(zipname) ; } catch (Exception ex) { fail("Failed to create a filemanager and add a zip locator") ; } InputStream in = fileManager.open(filename) ; assertNotNull(in) ; closeInputStream(in) ; }
public void testFileManagerLocatorZipNonFound() { FileManager fileManager = new FileManager() ; try { fileManager.addLocatorZip(zipname) ; } catch (Exception ex) { fail("Failed to create a filemanager and add a zip locator") ; } try { InputStream in = fileManager.open(filenameNonExistent) ; closeInputStream(in) ; assertNull("Found non-existant zip file member", in) ; } catch (NotFoundException ex) {} }
@Test public void testFileManagerLocatorZip() { FileManager fileManager = new FileManager() ; try { fileManager.addLocatorZip(zipname) ; } catch (Exception ex) { fail("Failed to create a filemanager and add a zip locator") ; } InputStream in = fileManager.open(filename) ; assertNotNull(in) ; closeInputStream(in) ; }
@Test public void testFileManagerLocatorZipNonFound() { FileManager fileManager = new FileManager() ; try { fileManager.addLocatorZip(zipname) ; } catch (Exception ex) { fail("Failed to create a filemanager and add a zip locator") ; } try { InputStream in = fileManager.open(filenameNonExistent) ; closeInputStream(in) ; assertNull("Found non-existant zip file member", in) ; } catch (NotFoundException ex) {} }