@Test public void testGetName() { final String classesPath = "WEB-INF/classes/"; final String filename = "test.props"; final String entryName = "META-INF/configuration/" + filename; final String pathName = classesPath + entryName; WsInputFile jarInputFile = new WsInputFile(classesPath, new ZipEntry(pathName), null); Assertions.assertThat(jarInputFile.getName()).isEqualTo(filename); Assertions.assertThat(jarInputFile.getRelativePath()).isEqualTo(entryName); }
@Override public String getName() { String name = entry.getName(); return name.substring(name.lastIndexOf('/') + 1); }
WsInputFile implements Vfs.File { @Override public String getName() { String name = entry.getName(); return name.substring(name.lastIndexOf('/') + 1); } }
WsInputFile implements Vfs.File { @Override public String getName() { String name = entry.getName(); return name.substring(name.lastIndexOf('/') + 1); } WsInputFile(String classesPath, ZipEntry entry, JarInputStream warfile); }
WsInputFile implements Vfs.File { @Override public String getName() { String name = entry.getName(); return name.substring(name.lastIndexOf('/') + 1); } WsInputFile(String classesPath, ZipEntry entry, JarInputStream warfile); @Override String getName(); @Override String getRelativePath(); @Override InputStream openInputStream(); }
WsInputFile implements Vfs.File { @Override public String getName() { String name = entry.getName(); return name.substring(name.lastIndexOf('/') + 1); } WsInputFile(String classesPath, ZipEntry entry, JarInputStream warfile); @Override String getName(); @Override String getRelativePath(); @Override InputStream openInputStream();  }