Search in sources :

Example 1 with StubUnpackFileMarkerHandler

use of org.apache.maven.plugins.dependency.testUtils.stubs.StubUnpackFileMarkerHandler in project maven-plugins by apache.

the class TestUnpackMarkerFileHandler method testMarkerFileException.

public void testMarkerFileException() {
    // this stub wraps the file with an object to throw exceptions
    StubUnpackFileMarkerHandler handler = new StubUnpackFileMarkerHandler(artifactItems.get(0), this.outputFolder);
    try {
        handler.setMarker();
        fail("Expected an Exception here");
    } catch (MojoExecutionException e) {
    }
}
Also used : MojoExecutionException(org.apache.maven.plugin.MojoExecutionException) StubUnpackFileMarkerHandler(org.apache.maven.plugins.dependency.testUtils.stubs.StubUnpackFileMarkerHandler)

Aggregations

MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)1 StubUnpackFileMarkerHandler (org.apache.maven.plugins.dependency.testUtils.stubs.StubUnpackFileMarkerHandler)1