use of org.apache.maven.plugins.dependency.utils.markers.DefaultFileMarkerHandler in project maven-plugins by apache.
the class TestMarkerFileFilter method testMarkerRelease.
public void testMarkerRelease() throws IOException, ArtifactFilterException, MojoExecutionException {
DefaultFileMarkerHandler handler = new DefaultFileMarkerHandler(fact.getReleaseArtifact(), outputFolder);
handler.setMarker();
MarkerFileFilter filter = new MarkerFileFilter(false, false, false, new DefaultFileMarkerHandler(outputFolder));
Set<Artifact> result = filter.filter(artifacts);
assertEquals(1, result.size());
filter.setOverWriteReleases(true);
result = filter.filter(artifacts);
assertEquals(2, result.size());
assertTrue(handler.clearMarker());
DependencyTestUtils.removeDirectory(outputFolder);
assertFalse(outputFolder.exists());
}
Aggregations