use of org.apache.jena.arq.querybuilder.handlers.PrologHandler in project jena by apache.
the class PrologClauseTest method testGetPrologHandler.
@ContractTest
public void testGetPrologHandler() {
PrologClause<?> prologClause = getProducer().newInstance();
PrologHandler handler = prologClause.getPrologHandler();
assertNotNull(handler);
}
use of org.apache.jena.arq.querybuilder.handlers.PrologHandler in project jena by apache.
the class PrologHandlerTest method setup.
@Before
public void setup() {
query = new Query();
handler = new PrologHandler(query);
}
use of org.apache.jena.arq.querybuilder.handlers.PrologHandler in project jena by apache.
the class PrologHandlerTest method testAddPrefixHandler.
@Test
public void testAddPrefixHandler() {
PrologHandler handler2 = new PrologHandler(new Query());
handler2.addPrefix("pfx", "uri");
handler.addAll(handler2);
String[] lst = byLine(query.toString());
assertContainsRegex("PREFIX\\s+pfx:\\s+\\<uri\\>", lst);
}
Aggregations