use of org.folio.rest.jaxrs.model.Identifier in project mod-kb-ebsco-java by folio-org.
the class TitlePostBodyValidatorTest method shouldThrowExceptionIfTitleIdentifierIdTooLong.
@Test(expected = InputValidationException.class)
public void shouldThrowExceptionIfTitleIdentifierIdTooLong() {
TitlePostRequest titlePostRequest = new TitlePostRequest();
List<Identifier> titleIdentifiers = new ArrayList<>();
titleIdentifiers.add(new Identifier().withId("1234567-1234567-1234567"));
titlePostRequest.withData(new TitlePostData().withAttributes(new TitlePostDataAttributes().withName(TITLE_TEST_NAME).withPublisherName("Test publisher name").withIdentifiers(titleIdentifiers)));
validator.validate(titlePostRequest);
}
Aggregations