public class JarContributionPackageProcessorTestCase extends TestCase {
private static final String JAR_CONTRIBUTION = "/repository/sample-calculator.jar";
public final void testProcessPackageArtifacts() throws Exception {
JarContributionProcessor jarProcessor = new JarContributionProcessor();
URL jarURL = getClass().getResource(JAR_CONTRIBUTION);
InputStream jarStream = jarURL.openStream();
List<URI> artifacts = null;
try {
artifacts = jarProcessor.getArtifacts(jarURL, jarStream);
} finally {
IOHelper.closeQuietly(jarStream);
}
assertNotNull(artifacts);