use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery19.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeGreaterThanOrNameIn" })
public void shouldReturnParserQuery19(String query) {
Operator operator = Operator.GREATER_THAN;
Operator operator2 = Operator.IN;
String variable = "age";
String variable2 = "name";
Operator operatorAppender = Operator.OR;
checkAppendCondition(query, operator, operator2, variable, variable2, operatorAppender);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery10.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeLessThanEqual" })
public void shouldReturnParserQuery10(String query) {
Operator operator = Operator.LESSER_EQUALS_THAN;
String variable = "age";
checkCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery18.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeOrNameLessThan" })
public void shouldReturnParserQuery18(String query) {
Operator operator = Operator.EQUALS;
Operator operator2 = Operator.LESSER_THAN;
String variable = "age";
String variable2 = "name";
Operator operatorAppender = Operator.OR;
checkAppendCondition(query, operator, operator2, variable, variable2, operatorAppender);
}
Aggregations