use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery5.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeNotGreaterThan" })
public void shouldReturnParserQuery5(String query) {
Operator operator = Operator.GREATER_THAN;
String variable = "age";
checkNotCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class FindByMethodQueryProviderTest method shouldReturnParserQuery17.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeOrName" })
public void shouldReturnParserQuery17(String query) {
Operator operator = Operator.EQUALS;
Operator operator2 = Operator.EQUALS;
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 shouldReturnParserQuery14.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "findByAgeIn" })
public void shouldReturnParserQuery14(String query) {
Operator operator = Operator.IN;
String variable = "age";
checkCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class DeleteByMethodQueryProviderTest method shouldReturnParserQuery4.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeGreaterThan" })
public void shouldReturnParserQuery4(String query) {
Operator operator = Operator.GREATER_THAN;
String variable = "age";
checkCondition(query, operator, variable);
}
use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class DeleteByMethodQueryProviderTest method shouldReturnParserQuery18.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeOrNameLessThan" })
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