AbstractPackageMojo extends AbstractWOMojo { protected File getArtifactFile() { return new File(getBuildDirectory(), getFinalName() + getClassifierAsString() + "." + getProductExtension()); } AbstractPackageMojo(); void execute(); MavenProjectHelper getProjectHelper(); void setProjectHelper(final MavenProjectHelper projectHelper);  }
@Test public void testFinalNameWithClassifier() throws Exception { assertThat(mojo.getArtifactFile().getName(), is("foo-1.0-SNAPSHOT-someClassifier.woapplication")); }
@Test public void testFinalNameWithEmptyClassifier() throws Exception { mojo.setClassifier(null); assertThat(mojo.getArtifactFile().getName(), is("foo-1.0-SNAPSHOT.woapplication")); }