use of com.hazelcast.query.SampleObjects.ObjectWithBigDecimal in project hazelcast by hazelcast.
the class SqlPredicateTest method testSql_withBigDecimal.
@Test
public void testSql_withBigDecimal() {
ObjectWithBigDecimal value = new ObjectWithBigDecimal(new BigDecimal("1.23E3"));
assertSqlMatching("attribute > '" + new BigDecimal("1.23E2") + "'", value);
assertSqlMatching("attribute >= '" + new BigDecimal("1.23E3") + "'", value);
assertSqlNotMatching("attribute = '" + new BigDecimal("1.23") + "'", value);
assertSqlMatching("attribute = '1.23E3'", value);
assertSqlMatching("attribute = 1.23E3", value);
assertSqlNotMatching("attribute = 1.23", value);
}
Aggregations