Description
This test will fail since WriteConcern's equals methods uses == and not equals() for the _w field. I noticed this when testing the new API to pass a string into the WriteConcern constructor. Here is a failing test case
public void testWriteConcernEquality() {
|
String s1 = new String("rack1");
|
String s2 = new String("rack1");
|
WriteConcern wc1 = new WriteConcern(s1);
|
WriteConcern wc2 = new WriteConcern(s2);
|
assertThat(wc1, equalTo(wc2));
|
}
|
|