I am trying to write a junit test case which compares 2 lists of objects. But the test keeps failing with AssertionError. The assert statement is comparing the object reference and hence the error. I also tried using assertEquals,assertThat and assertArrayEquals. How do I resolve this ? Someone please help me.
Aucun commentaire:
Enregistrer un commentaire