use of jakarta.nosql.query.Operator in project jnosql-diana by eclipse.
the class DeleteByMethodQueryProviderTest method shouldReturnParserQuery17.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeOrName" })
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 DeleteByMethodQueryProviderTest method shouldReturnParserQuery9.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeNotLessThan" })
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 DeleteByMethodQueryProviderTest method shouldReturnParserQuery14.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeIn" })
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 shouldReturnParserQuery19.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeGreaterThanOrNameIn" })
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 DeleteByMethodQueryProviderTest method shouldReturnParserQuery5.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "deleteByAgeNotGreaterThan" })
public void shouldReturnParserQuery5(String query) {
Operator operator = Operator.GREATER_THAN;
String variable = "age";
checkNotCondition(query, operator, variable);
}
Aggregations