I'm currently involved with testing dynamically generated query filters.
It seems that the filters havent provided an implementation for equality check.
Therefore, this test will fail:
// does not pass
@Test
public void testFilterEqualityByFilterType() {
assertEquals(and(eq("hello", "world")), and(eq("hello", "world")));
}
But this does pass:
@Test
public void testFilterEqualityByString() {
assertEquals(and(eq("hello", "world")).toString(),
and(eq("hello", "world")).toString());
}
As a tester, i'd be more comfortable checking on equality rather than string.
Hopefully this could serve as a good input for future improvements.
Thank you guys for developing such great products.