import java.io.IOException;
import org.junit.Test;
-
public class QueryTest {
/**
// 'greater than' and 'greater than and equal to' operators.
boolean gotExpectedException = false;
try {
- RangeQuery badRangeQuery = mapper.readValue(invalidGTAndGTE, RangeQuery.class);
+ mapper.readValue(invalidGTAndGTE, RangeQuery.class);
} catch (JsonMappingException e) {
gotExpectedException = true;
}
// 'less than' and 'less than and equal to' operators.
gotExpectedException = false;
try {
- RangeQuery badRangeQuery = mapper.readValue(invalidLTAndLTE, RangeQuery.class);
+ mapper.readValue(invalidLTAndLTE, RangeQuery.class);
} catch (JsonMappingException e) {
gotExpectedException = true;
}
// in the same query.
gotExpectedException = false;
try {
- RangeQuery badRangeQuery = mapper.readValue(invalidTypes, RangeQuery.class);
+ mapper.readValue(invalidTypes, RangeQuery.class);
} catch (JsonMappingException e) {
gotExpectedException = true;
}