@Test(expected=IllegalArgumentException.class) public void missingCiContentSource() throws IOException{ contentItemFactory.createContentItem((ContentSource)null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource2() throws IOException{ contentItemFactory.createContentItem(PREFIX,null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentReference() throws IOException{ contentItemFactory.createContentItem((ContentReference)null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentReference() throws IOException{ contentItemFactory.createContentItem((ContentReference)null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiPrefix() throws IOException{ contentItemFactory.createContentItem((String)null,TEST_CS); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource3() throws IOException{ contentItemFactory.createContentItem(ID,null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource() throws IOException{ contentItemFactory.createContentItem((ContentSource)null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource2() throws IOException{ contentItemFactory.createContentItem(PREFIX,null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiPrefix() throws IOException{ contentItemFactory.createContentItem((String)null,TEST_CS); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource3() throws IOException{ contentItemFactory.createContentItem(ID,null); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource4() throws IOException{ contentItemFactory.createContentItem(ID,null,new SimpleGraph()); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiPrefix2() throws IOException{ contentItemFactory.createContentItem((String)null,TEST_CS,new SimpleGraph()); } /**
@Test(expected=IllegalArgumentException.class) public void missingCiContentReference2() throws IOException{ contentItemFactory.createContentItem(null,new SimpleGraph()); } /*
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource4() throws IOException{ contentItemFactory.createContentItem(ID,null,new SimpleGraph()); } @Test(expected=IllegalArgumentException.class)
@Test(expected=IllegalArgumentException.class) public void missingCiContentReference2() throws IOException{ contentItemFactory.createContentItem(null,new SimpleGraph()); } /*
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource5() throws IOException{ contentItemFactory.createContentItem(PREFIX,null,new SimpleGraph()); } /*
@Test(expected=IllegalArgumentException.class) public void missingCiPrefix2() throws IOException{ contentItemFactory.createContentItem((String)null,TEST_CS,new SimpleGraph()); } /**
@Test(expected=IllegalArgumentException.class) public void missingCiContentSource5() throws IOException{ contentItemFactory.createContentItem(PREFIX,null,new SimpleGraph()); } /*
/** * Test the generation of valid IDs if no or <code>null</code> is parsed * as id */ @Test public void testDefaultId() throws IOException { ContentItem ci = contentItemFactory.createContentItem(TEST_CS); assertNotNull(ci); assertNotNull(ci.getUri()); ci = contentItemFactory.createContentItem((IRI)null,TEST_CS); assertNotNull(ci); assertNotNull(ci.getUri()); ci = contentItemFactory.createContentItem((IRI)null,TEST_CS, new SimpleGraph()); assertNotNull(ci); assertNotNull(ci.getUri()); } /**
/** * Test that the parsed URI is used as ID of the ContentItem */ @Test public void testURI() throws IOException { ContentItem ci = contentItemFactory.createContentItem(ID, TEST_CS); assertNotNull(ci); assertNotNull(ci.getUri()); assertTrue("The ID of the created ContentItem MUST be equals to the parsed ID", ci.getUri().equals(ID)); ci = contentItemFactory.createContentItem(ID, TEST_CS,new SimpleGraph()); assertNotNull(ci); assertNotNull(ci.getUri()); assertTrue("The ID of the created ContentItem MUST be equals to the parsed ID", ci.getUri().equals(ID)); } /**