use of org.apache.jena.riot.system.stream.LocatorFile in project jena by apache.
the class TestLocators method locatorFile_02.
@Test
public void locatorFile_02() {
LocatorFile loc = new LocatorFile(".");
assertTrue(loc.exists("pom.xml"));
assertTrue(loc.exists(testingDir + "data.ttl"));
assertFalse(loc.exists("IDoNotExist"));
}
use of org.apache.jena.riot.system.stream.LocatorFile in project jena by apache.
the class TestStreamManager method beforeClass.
@BeforeClass
public static void beforeClass() {
streamMgrStd = StreamManager.get();
streamMgrDir = new StreamManager();
// Not current directory.
streamMgrDir.addLocator(new LocatorFile(directory));
streamMgrDir.addLocator(new LocatorHTTP());
streamMgrHere = new StreamManager();
// Not current directory.
streamMgrHere.addLocator(new LocatorFile());
streamMgrHere.addLocator(new LocatorHTTP());
streamMgrNull = new StreamManager();
}
Aggregations