Fails:
String name = "test.jar"; WebArchive war = ShrinkWrap.create(WebArchive.class) .addAsLibraries( ShrinkWrap.create(JavaArchive.class, name) .add(EmptyAsset.INSTANCE, "some")); ArchivePath path = ArchivePaths.create("WEB-INF/lib", name); Assert.assertTrue(war.contains(path)); war.delete(path); Assert.assertFalse("Path should have been deleted", war.contains(path));
From aslak@redhat.com
- is related to
-
SHRINKWRAP-474 getAsType fail if the ArchiveAsset exists
- Resolved