ManifestResolver extends AbstractProcessor { @Override public Collection<Artifact> process(Collection<Artifact> artifacts) { LOGGER.debug("Resolve manifest..."); resolveManifest(artifacts); LOGGER.debug("Resolve manifest... done"); return artifacts; } ManifestResolver(); @Override void setAntennaContext(AntennaContext context); @Override Collection<Artifact> process(Collection<Artifact> artifacts);  }
@Test public void resolveArtifactsTest() throws IOException { Path jarWithManifest = jarCreator.createJarWithManifest(JarCreator.jarWithManifestName); List<Artifact> artifacts = makeArtifacts(jarWithManifest); resolver.process(artifacts); assertManifestMetadata(artifacts.get(0)); }
@Test public void testWithoutManifest() throws IOException { Path jarWithoutManifest = jarCreator.createJarWithoutManifest(); List<Artifact> artifacts = makeArtifacts(jarWithoutManifest); resolver.process(artifacts); Assertions.assertThat(artifacts.get(0).getCoordinateForType(Coordinate.Types.P2).isPresent()) .isFalse(); }