コード例 #1
0
 @Test
 public void testValidQualifier() throws Exception {
   ContentItem item = new ContentItemImpl("123456789", VALID_QUALIFIER, null, "", null);
   ContentItemValidator.validate(item);
   assertThat(item.getQualifier(), is(VALID_QUALIFIER));
 }
コード例 #2
0
 @Test
 public void testValidFilename() throws Exception {
   ContentItem item = new ContentItemImpl(null, "", VALID_FILENAME, null);
   ContentItemValidator.validate(item);
   assertThat(item.getFilename(), is(VALID_FILENAME));
 }