use of org.folio.rest.jaxrs.model.PackageTagsPutData in project mod-kb-ebsco-java by folio-org.
the class PackageTagsPutBodyValidatorTest method shouldThrowExceptionWhenNameIsEmpty.
@Test(expected = InputValidationException.class)
public void shouldThrowExceptionWhenNameIsEmpty() {
PackageTagsPutRequest request = new PackageTagsPutRequest().withData(new PackageTagsPutData().withAttributes(new PackageTagsDataAttributes().withName("").withContentType(ContentType.E_BOOK)));
validator.validate(request);
}
use of org.folio.rest.jaxrs.model.PackageTagsPutData in project mod-kb-ebsco-java by folio-org.
the class PackageTagsPutBodyValidatorTest method shouldThrowExceptionWhenContentTypeIsNull.
@Test(expected = InputValidationException.class)
public void shouldThrowExceptionWhenContentTypeIsNull() {
PackageTagsPutRequest request = new PackageTagsPutRequest().withData(new PackageTagsPutData().withAttributes(new PackageTagsDataAttributes().withName("name")));
validator.validate(request);
}
Aggregations