@Test public void testGetResourceValueOPT1() throws SchemagenOptionsConfigurationException { SchemagenOptions so0 = new SchemagenOptions(); Resource r = ResourceFactory.createResource("http://example.org/foo"); so0.setOption(OPT.ROOT, r); assertEquals(r, so0.getResource(OPT.ROOT)); }
@Test public void testGetResourceValueOPT3() throws SchemagenOptionsConfigurationException { SchemagenOptions so0 = new SchemagenOptions(); SchemagenOptions so1 = new SchemagenOptions(); so0.setParent(so1); Resource r0 = ResourceFactory.createResource("http://example.org/foo"); Resource r1 = ResourceFactory.createResource("http://example.org/bar"); so0.setOption(OPT.ROOT, r0); so1.setOption(OPT.ROOT, r1); assertEquals(r0, so0.getResource(OPT.ROOT)); }
/** * Test method for {@link SchemagenOptions#getResource(jena.schemagen.SchemagenOptions.OPT)}. * * @throws SchemagenOptionsConfigurationException */ @Test public void testGetResourceOPT0() throws SchemagenOptionsConfigurationException { SchemagenOptions so0 = new SchemagenOptions(); assertNull(so0.getResource(OPT.ROOT)); }