DatasetFactory { public Dataset load(String aId) throws IOException { return load(aId, defaultVerificationPolicy); } DatasetFactory();  DatasetFactory(File aCacheRoot);  DatasetFactory(Path aCacheRoot);  DatasetFactory(Path aCacheRoot, ClassLoader aClassLoader); Path getCacheRoot(); List<String> listIds(); DatasetDescription getDescription(String aId); Dataset load(String aId); Dataset load(String aId, DatasetValidationPolicy aPolicy); Path resolve(DatasetDescription aDataset); static final String PROP_DATASET_VERIFICATION_POLICY; }
@Ignore("Used at times for offline testing / development") @Test public void testOne() throws Exception { Path cache = Paths.get("target/test-output/testLoadOne"); DatasetFactory df = new DatasetFactory(cache); { Dataset ds = df.load("updt-fa-1.3"); assertDatasetOk(ds); } }
@Ignore("Used at times for offline testing / development") @Test public void testShared() throws Exception { Path cache = testContext.getTestOutputFolder().toPath(); DatasetFactory df = new DatasetFactory(cache); Dataset ds1 = df.load("perseus-el-2.1"); assertDatasetOk(ds1); Dataset ds2 = df.load("perseus-la-2.1"); assertDatasetOk(ds2); }
@Ignore("Used at times for offline testing / development") @Test public void testLoadSimple() throws Exception { Path cache = testContext.getTestOutputFolder().toPath(); DatasetFactory df = new DatasetFactory(cache); Dataset ds = df.load("germeval2014-de"); assertDatasetOk(ds); }