assertEquals(1, list.get(0).getAccountId());
assertEquals(1500, list.get(0).getAmount(), 0);
}
public void testBetween1() throws Exception {
QueryFactory qf = Search.getQueryFactory(remoteCache);
// all the transactions that happened in January 2013
Query q = qf.from(Transaction.class)
.having("date").between(DATE_FORMAT.parse("2013-01-01").getTime(), DATE_FORMAT.parse("2013-01-31").getTime())
.toBuilder().build();
List<Transaction> list = q.list();
assertEquals(4, list.size());