use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery9.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeNotLessThan" })
public void shouldReturnParserQuery9(String query) {
Operator operator = Operator.LESSER_THAN;
String variable = "age";
checkNotCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery7.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeNotGreaterThanEqual" })
public void shouldReturnParserQuery7(String query) {
Operator operator = Operator.GREATER_EQUALS_THAN;
String variable = "age";
checkNotCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery11.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeNotLessThanEqual" })
public void shouldReturnParserQuery11(String query) {
Operator operator = Operator.LESSER_EQUALS_THAN;
String variable = "age";
checkNotCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery16.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeAndName" })
public void shouldReturnParserQuery16(String query) {
Operator operator = Operator.EQUALS;
Operator operator2 = Operator.EQUALS;
String variable = "age";
String variable2 = "name";
Operator operatorAppender = Operator.AND;
checkAppendCondition(query, operator, operator2, variable, variable2, operatorAppender);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery12.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeLike" })
public void shouldReturnParserQuery12(String query) {
Operator operator = Operator.LIKE;
String variable = "age";
checkCondition(query, operator, variable);
}
Aggregations