@Test public void testValidQualifier() throws Exception { ContentItem item = new ContentItemImpl("123456789", VALID_QUALIFIER, null, "", null); ContentItemValidator.validate(item); assertThat(item.getQualifier(), is(VALID_QUALIFIER)); }
@Test public void testValidFilename() throws Exception { ContentItem item = new ContentItemImpl(null, "", VALID_FILENAME, null); ContentItemValidator.validate(item); assertThat(item.getFilename(), is(VALID_FILENAME)); }