/** * Test method for {@link * org.arachb.owlbuilder.lib.Narrative#generateOWL(org.arachb.owlbuilder.Owlbuilder)}. * * @throws Exception */ @Test public void testGenerateOWL1arg() throws Exception { Narrative n1 = new Narrative(nb1); OWLObject owlObj = n1.generateOWL(builder); assertNotNull(owlObj); assertTrue(owlObj instanceof OWLNamedIndividual); }
/** * Test method for {@link * org.arachb.owlbuilder.lib.Narrative#generateOWL(org.arachb.owlbuilder.Owlbuilder, * java.util.Map)}. * * @throws Exception */ @Test public void testGenerateOWL2arg() throws Exception { Narrative n1 = new Narrative(nb1); Map<String, OWLObject> elements = new HashMap<>(); OWLObject owlObj = n1.generateOWL(builder, elements); assertNotNull(owlObj); assertEquals(1, elements.size()); }