use of org.apache.jena.sparql.expr.E_Bound in project jena by apache.
the class ExprFactoryTest method boundTest_Object.
public void boundTest_Object() {
Expr e = factory.bound("hello");
assertTrue(e instanceof E_Bound);
assertEquals("?hello", e.getVarName());
}
use of org.apache.jena.sparql.expr.E_Bound in project jena by apache.
the class ExprFactoryTest method boundTest_ExprVar.
public void boundTest_ExprVar() {
ExprVar ev = new ExprVar("hello");
Expr e = factory.bound(ev);
assertTrue(e instanceof E_Bound);
assertEquals("?hello", e.getVarName());
}
use of org.apache.jena.sparql.expr.E_Bound in project jena by apache.
the class ExprFactoryTest method boundTest_Var.
// expr 1 functions
@Test
public void boundTest_Var() {
Expr e = factory.bound(Var.alloc("hello"));
assertTrue(e instanceof E_Bound);
assertEquals("?hello", ((E_Bound) e).getArg().toString());
}