Search in sources :

Example 1 with E_NotExists

use of org.apache.jena.sparql.expr.E_NotExists 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);
}
Also used : Query(org.apache.jena.query.Query) Expr(org.apache.jena.sparql.expr.Expr) WhereHandler(org.apache.jena.arq.querybuilder.handlers.WhereHandler) E_NotExists(org.apache.jena.sparql.expr.E_NotExists) Test(org.junit.Test)

Aggregations

WhereHandler (org.apache.jena.arq.querybuilder.handlers.WhereHandler)1 Query (org.apache.jena.query.Query)1 E_NotExists (org.apache.jena.sparql.expr.E_NotExists)1 Expr (org.apache.jena.sparql.expr.Expr)1 Test (org.junit.Test)1