public ArchiveBuilder setManifest(Asset manifestAsset) { ManifestContainer<?> container = (ManifestContainer<?>) archive; container.setManifest(manifestAsset); return this; }
@Test @ArchiveType(ManifestContainer.class) public void testSetManifestResourceInPackage() throws Exception { getManifestContainer().setManifest(AssetUtil.class.getPackage(), "Test.properties"); ArchivePath testPath = new BasicPath(getManifestPath(), MANIFEST_FILE); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
/** * https://jira.jboss.org/jira/browse/SHRINKWRAP-142 * * @throws Exception */ @Test @ArchiveType(ManifestContainer.class) public void testSetManifestResource() throws Exception { getManifestContainer().setManifest(NAME_TEST_PROPERTIES); ArchivePath testPath = new BasicPath(getManifestPath(), MANIFEST_FILE); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
/** * https://jira.jboss.org/jira/browse/SHRINKWRAP-142 * * @throws Exception */ @Test @ArchiveType(ManifestContainer.class) public void testSetManifestFile() throws Exception { getManifestContainer().setManifest(getFileForClassResource(NAME_TEST_PROPERTIES)); ArchivePath testPath = new BasicPath(getManifestPath(), MANIFEST_FILE); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
/** * https://jira.jboss.org/jira/browse/SHRINKWRAP-142 * * @throws Exception */ @Test @ArchiveType(ManifestContainer.class) public void testSetManifestURL() throws Exception { getManifestContainer().setManifest(getURLForClassResource(NAME_TEST_PROPERTIES)); ArchivePath testPath = new BasicPath(getManifestPath(), MANIFEST_FILE); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
/** * https://jira.jboss.org/jira/browse/SHRINKWRAP-142 * * @throws Exception */ @Test @ArchiveType(ManifestContainer.class) public void testSetManifestAsset() throws Exception { getManifestContainer().setManifest(getAssetForClassResource(NAME_TEST_PROPERTIES)); ArchivePath testPath = new BasicPath(getManifestPath(), MANIFEST_FILE); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }