Subject: [mongodb-user] Java Mongo Filter equality checks



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.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/f6362fba-ebc8-495e-9a61-a61c32ad7d4a%40googlegroups.com....


For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting