use of jakarta.nosql.query.NumberQueryValue in project jnosql-diana by eclipse.
the class RemoveProviderTest method shouldReturnParserQuery3.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "del -12" })
public void shouldReturnParserQuery3(String query) {
DelQuery delQuery = provider.apply(query);
List<QueryValue<?>> keys = delQuery.getKeys();
assertEquals(1, keys.size());
QueryValue<?> key = keys.get(0);
assertTrue(key instanceof NumberQueryValue);
assertEquals(-12L, NumberQueryValue.class.cast(key).get());
}
use of jakarta.nosql.query.NumberQueryValue in project jnosql-diana by eclipse.
the class RemoveProviderTest method shouldReturnParserQuery4.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "del -12.12" })
public void shouldReturnParserQuery4(String query) {
DelQuery delQuery = provider.apply(query);
List<QueryValue<?>> keys = delQuery.getKeys();
assertEquals(1, keys.size());
QueryValue<?> key = keys.get(0);
assertTrue(key instanceof NumberQueryValue);
assertEquals(-12.12, NumberQueryValue.class.cast(key).get());
}
use of jakarta.nosql.query.NumberQueryValue in project jnosql-diana by eclipse.
the class GetProviderTest method shouldReturnParserQuery2.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "get 12.12" })
public void shouldReturnParserQuery2(String query) {
GetQuery getQuery = queryProvider.apply(query);
List<QueryValue<?>> keys = getQuery.getKeys();
assertEquals(1, keys.size());
QueryValue<?> key = keys.get(0);
assertTrue(key instanceof NumberQueryValue);
assertEquals(12.12, NumberQueryValue.class.cast(key).get());
}
use of jakarta.nosql.query.NumberQueryValue in project jnosql-diana by eclipse.
the class GetProviderTest method shouldReturnParserQuery1.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "get 12" })
public void shouldReturnParserQuery1(String query) {
GetQuery getQuery = queryProvider.apply(query);
List<QueryValue<?>> keys = getQuery.getKeys();
assertEquals(1, keys.size());
QueryValue<?> key = keys.get(0);
assertTrue(key instanceof NumberQueryValue);
assertEquals(12L, NumberQueryValue.class.cast(key).get());
}
use of jakarta.nosql.query.NumberQueryValue in project jnosql-diana by eclipse.
the class GetProviderTest method shouldReturnParserQuery3.
@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = { "get -12" })
public void shouldReturnParserQuery3(String query) {
GetQuery getQuery = queryProvider.apply(query);
List<QueryValue<?>> keys = getQuery.getKeys();
assertEquals(1, keys.size());
QueryValue<?> key = keys.get(0);
assertTrue(key instanceof NumberQueryValue);
assertEquals(-12L, NumberQueryValue.class.cast(key).get());
}
Aggregations