@Test public void main() { final Archive<?> war = Mvn.war(); assertTrue(war.get("/WEB-INF/classes/org/apache/ziplock/maven/Mvn.class") != null); assertTrue(war.getContent(new Filter<ArchivePath>() { @Override public boolean include(final ArchivePath archivePath) { return archivePath.get().startsWith("/WEB-INF/lib") && archivePath.get().contains("javaee-api"); } }).size() == 1); assertTrue(war.getContent(new Filter<ArchivePath>() { @Override public boolean include(final ArchivePath archivePath) { return archivePath.get().startsWith("/WEB-INF/lib") && archivePath.get().contains("junit"); } }).isEmpty()); }
public static Archive<?> war() { return new Builder().build(); }
Mvn { public static Archive<?> war() { return new Builder().build(); } }
Mvn { public static Archive<?> war() { return new Builder().build(); } private  Mvn(); }
Mvn { public static Archive<?> war() { return new Builder().build(); } private  Mvn(); static Archive<?> war(); static Archive<?> testWar(); }
Mvn { public static Archive<?> war() { return new Builder().build(); } private  Mvn(); static Archive<?> war(); static Archive<?> testWar();  }