use of org.apache.jena.arq.querybuilder.handlers.WhereHandler in project jena by apache.
the class ExprFactoryTest method existsTest.
// expr op
@Test
public void existsTest() {
WhereHandler handler = new WhereHandler(new Query());
WhereClause<?> whereClause = mock(WhereClause.class);
when(whereClause.getWhereHandler()).thenReturn(handler);
Expr e = factory.exists(whereClause);
assertTrue(e instanceof E_Exists);
}
use of org.apache.jena.arq.querybuilder.handlers.WhereHandler in project jena by apache.
the class ExprFactoryTest method notexistsTest.
@Test
public void notexistsTest() {
WhereHandler handler = new WhereHandler(new Query());
WhereClause<?> whereClause = mock(WhereClause.class);
when(whereClause.getWhereHandler()).thenReturn(handler);
Expr e = factory.notexists(whereClause);
assertTrue(e instanceof E_NotExists);
}
Aggregations