use of org.apache.jena.arq.querybuilder.handlers.DatasetHandler in project jena by apache.
the class DatasetClauseTest method testGetDatasetHandler.
@ContractTest
public void testGetDatasetHandler() {
DatasetClause<?> datasetClause = getProducer().newInstance();
DatasetHandler dsHandler = datasetClause.getDatasetHandler();
assertNotNull(dsHandler);
}
use of org.apache.jena.arq.querybuilder.handlers.DatasetHandler in project jena by apache.
the class DatasetHandlerTest method testAddAll.
@Test
public void testAddAll() {
DatasetHandler handler2 = new DatasetHandler(new Query());
handler2.from("foo");
handler2.fromNamed("bar");
handler.addAll(handler2);
String s = query.toString();
assertTrue(s.contains("FROM <foo>"));
assertTrue(s.contains("FROM NAMED <bar>"));
}
use of org.apache.jena.arq.querybuilder.handlers.DatasetHandler in project jena by apache.
the class DatasetHandlerTest method setup.
@Before
public void setup() {
query = new Query();
handler = new DatasetHandler(query);
}
Aggregations