@Test @ArchiveType(WebContainer.class) public void testSetWebXMLResourceInPackage() throws Exception { getWebContainer().setWebXML(AssetUtil.class.getPackage(), "Test.properties"); ArchivePath testPath = new BasicPath(getWebInfPath(), "web.xml"); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
@Test @ArchiveType(WebContainer.class) public void testSetWebXMLResource() throws Exception { getWebContainer().setWebXML(NAME_TEST_PROPERTIES); ArchivePath testPath = new BasicPath(getWebInfPath(), "web.xml"); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
@Test @ArchiveType(WebContainer.class) public void testSetWebXMLURL() throws Exception { getWebContainer().setWebXML(getURLForClassResource(NAME_TEST_PROPERTIES)); ArchivePath testPath = new BasicPath(getWebInfPath(), "web.xml"); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
@Test @ArchiveType(WebContainer.class) public void testSetWebXMLAsset() throws Exception { getWebContainer().setWebXML(getAssetForClassResource(NAME_TEST_PROPERTIES)); ArchivePath testPath = new BasicPath(getWebInfPath(), "web.xml"); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }
@Test @ArchiveType(WebContainer.class) public void testSetWebXMLFile() throws Exception { getWebContainer().setWebXML(getFileForClassResource(NAME_TEST_PROPERTIES)); ArchivePath testPath = new BasicPath(getWebInfPath(), "web.xml"); Assert.assertTrue("Archive should contain " + testPath, getArchive().contains(testPath)); }