use of javax.jcr.query.qom.BindVariableValue in project jackrabbit by apache.
the class QueryObjectModelFactoryTest method testBindVariableValue.
/**
* Test case for {@link QueryObjectModelFactory#bindVariable(String)}
*/
public void testBindVariableValue() throws RepositoryException {
BindVariableValue bindVar = qf.bindVariable(propertyName1);
assertEquals("Wrong variable name", propertyName1, bindVar.getBindVariableName());
}
use of javax.jcr.query.qom.BindVariableValue in project jackrabbit-oak by apache.
the class QomTest method bindVariable.
@Test
public void bindVariable() throws RepositoryException {
BindVariableValue b = f.bindVariable("bindVariableName");
assertEquals("bindVariableName", b.getBindVariableName());
assertEquals("$bindVariableName", b.toString());
}
Aggregations