public void testNoArtifactItems() { try { mojo.getProcessedArtifactItems(false); fail("Expected Exception"); } catch (MojoExecutionException e) { assertEquals("There are no artifactItems configured.", e.getMessage()); } }
public ArtifactItem getSingleArtifactItem(boolean removeVersion) throws MojoExecutionException { List<ArtifactItem> list = mojo.getProcessedArtifactItems(removeVersion); return list.get(0); }