use of org.jboss.pnc.facade.validation.DTOValidationException in project pnc by project-ncl.
the class ArtifactProviderTest method testStoreWithId.
@Test
public void testStoreWithId() {
final String identifier = "foo:bar:0.0.1";
Artifact artifact = Artifact.builder().id("123").identifier(identifier).artifactQuality(ArtifactQuality.NEW).buildCategory(BuildCategory.STANDARD).build();
try {
provider.store(artifact);
fail("Validation exception expected");
} catch (DTOValidationException ex) {
// ok
}
}
Aggregations