super.tearDown();
}
public void testMutatedDateParameter() {
Broker broker = _factory.newBroker();
Query q = broker.newQuery(JPQLParser.LANG_JPQL,
"select a from " +
CacheObjectAChild1.class.getSimpleName() +
" a where a.date < :p_date");
Date d = new Date();
Collection c = (Collection) q.execute(new Object[]{ d });
CacheTestHelper.iterate(c);
int initialSize = c.size();
CacheTestHelper.assertInCache(this, q, Boolean.TRUE,
new Object[]{ d });
d.setTime(_startDate.getTime());
CacheTestHelper.assertInCache(this, q, Boolean.FALSE,
new Object[]{ d });
c = (Collection) q.execute(new Object[]{ d });
assertFalse(new Integer(initialSize).equals(new Integer(c.size())));
}