public void shouldTestOWLParserFactoryRegistry() throws Exception { OWLParserFactoryRegistry testSubject0 = OWLParserFactoryRegistry.getInstance(); OWLParserFactoryRegistry result0 = OWLParserFactoryRegistry.getInstance(); testSubject0.clearParserFactories(); List<OWLParserFactory> result1 = testSubject0.getParserFactories(); testSubject0.registerParserFactory(mock(OWLParserFactory.class)); testSubject0.unregisterParserFactory(mock(OWLParserFactory.class)); String result2 = testSubject0.toString(); }
/** * Gets a list of parsers that this factory uses when it tries to create an ontology from a * concrete representation. */ public List<OWLParser> getParsers() { List<OWLParser> parsers = new ArrayList<OWLParser>(); List<OWLParserFactory> factories = OWLParserFactoryRegistry.getInstance().getParserFactories(); for (OWLParserFactory factory : factories) { OWLParser parser = factory.createParser(getOWLOntologyManager()); parser.setOWLOntologyManager(getOWLOntologyManager()); parsers.add(parser); } return new ArrayList<OWLParser>(parsers); }