VirtualDirTgz extends VirtualDir { @Override public String[] list(String path) throws IOException { final File file = getFile(path); return file.list(); } VirtualDirTgz(File tgz); @Override String getBasePath(); @Override InputStream getInputStream(String path); @Override File getFile(String path); @Override String[] list(String path); @Override String[] listAllFiles(); @Override void close(); @Override boolean isCompressed(); @Override boolean isArchive(); @Override void finalize(); @Override File getTempDir();  }
@Test(expected = IOException.class) public void testTar_list_invalidPath() throws IOException { final File testTgz = TestUtil.getTestFile("tgz/test-archive.tar"); virtualDir = new VirtualDirTgz(testTgz); virtualDir.list("in/valid/path"); }
@Test(expected = IOException.class) public void testTgz_list_invalidPath() throws IOException { final File testTgz = TestUtil.getTestFile("tgz/test-archive.tgz"); virtualDir = new VirtualDirTgz(testTgz); virtualDir.list("in/valid/path"); }