public class WarContributionProcessorTestCase {
private static final String WAR_CONTRIBUTION = "/sample-web-app.war";
@Test
public void testProcessPackageArtifacts() throws Exception {
WarContributionProcessor warProcessor = new WarContributionProcessor();
URL warURL = getClass().getResource(WAR_CONTRIBUTION);
InputStream warStream = warURL.openStream();
List<URI> artifacts = null;
try {
artifacts = warProcessor.getArtifacts(warURL, warStream);
} finally {
IOHelper.closeQuietly(warStream);
}
Assert.assertNotNull(artifacts);