I know that assertEquals compares an EXPECTED object to an ACTUAL object, but what does the following do:
ExampleClass ec = new ExampleClass();
assertEquals(ec,ec);
assertTrue(ec==ec);
... I can't quite get why one would do such a test (this is an example I've come across when reading up on unit testing which isn't explained). It doesn't make sense and I can't find anything about comparing the SAME object to itself on the net...?
Anyone got any thoughts on this?