TDBFactory { public static boolean inUseLocation(String directory) { return inUseLocation(Location.create(directory)) ; } private  TDBFactory(); static Dataset assembleDataset(String assemblerFile); static Dataset createDataset(String dir); static Dataset createDataset(Location location); static Dataset createDataset(); static DatasetGraph createDatasetGraph(String directory); static DatasetGraph createDatasetGraph(Location location); static DatasetGraph createDatasetGraph(); static void release(Dataset dataset); static void release(DatasetGraph dataset); @Deprecated static boolean isBackedByTDB(Dataset dataset); @Deprecated static boolean isBackedByTDB(DatasetGraph datasetGraph); static boolean isTDB1(Dataset dataset); static boolean isTDB1(DatasetGraph datasetGraph); static Location location(Dataset dataset); static Location location(DatasetGraph datasetGraph); static boolean inUseLocation(String directory); static boolean inUseLocation(Location location); static void setup(Location location, StoreParams params);  }
@Test public void testTDBFresh01() { boolean b = TDBFactory.inUseLocation(DIR) ; assertFalse("Expect false before any creation attempted", b) ; }
@Test public void testTDBFresh11() { Location loc = Location.mem() ; boolean b = TDBFactory.inUseLocation(loc) ; assertFalse("Expect false before any creation attempted", b) ; }