use of org.apache.maven.plugins.ear.UnknownArtifactTypeException in project maven-plugins by apache.
the class ArtifactTypeMappingServiceTest method testGetStandardTypeForUknonwnType.
public void testGetStandardTypeForUknonwnType() {
try {
ArtifactTypeMappingService service = getDefaultService();
service.getStandardType("MyKoolCustomType");
fail("Should have failed to retrieve a unknwon custom type");
} catch (UnknownArtifactTypeException e) {
// That's good
}
}
use of org.apache.maven.plugins.ear.UnknownArtifactTypeException in project maven-plugins by apache.
the class ArtifactTypeMappingServiceTest method testGetStandardTypeForKnownType.
public void testGetStandardTypeForKnownType() {
try {
ArtifactTypeMappingService service = getServiceWithRarMappingToMyRar();
assertEquals("rar", service.getStandardType("MyRar"));
} catch (UnknownArtifactTypeException e) {
fail("Should not have failed to retrieve a knwon custom type " + e.getMessage());
}
}
Aggregations