@Config public static Configuration getConfig() throws IOException, URISyntaxException { return ConfigurationUtils.loadFileBasedTestConfiguration( INPUT_DATA_LOCATION, BaseIncrementalQueryTest.class, "owl", "expected", new MultiManifestCreator< QueryTestInput<Collection<OWLAxiom>>, EntailmentQueryTestOutput<OWLAxiom>, EntailmentQueryTestOutput<OWLAxiom>>() { @Override public Collection< ? extends TestManifestWithOutput< QueryTestInput<Collection<OWLAxiom>>, EntailmentQueryTestOutput<OWLAxiom>, EntailmentQueryTestOutput<OWLAxiom>>> createManifests(final URL input, final URL output) throws IOException { InputStream outputIS = null; try { outputIS = output.openStream(); // don't need an expected output for these tests return OwlExpectedTestOutputLoader.load(outputIS).getEntailmentManifests(input); } finally { IOUtils.closeQuietly(outputIS); } } }); }
@Config public static Configuration getConfig() throws URISyntaxException, IOException { return ConfigurationUtils.loadFileBasedTestConfiguration( INPUT_DATA_LOCATION, IncrementalClassificationCorrectnessTest.class, "owl", "expected", new TestManifestCreator<UrlTestInput, TaxonomyTestOutput<?>, TaxonomyTestOutput<?>>() { @Override public TestManifestWithOutput<UrlTestInput, TaxonomyTestOutput<?>, TaxonomyTestOutput<?>> create(URL input, URL output) throws IOException { // don't need an expected output for these tests return new TaxonomyDiffManifest<TaxonomyTestOutput<?>, TaxonomyTestOutput<?>>( input, null); } }); }