Mohamed Gara
64338290bd
Convert JUnit assertions to AssertJ
- We used "convert-junit-assertions-to-assertj.sh" script to launch the automatic conversion.
- The auto conversion of assertEquals(<List>, <List>) was wrong.
- The auto conversion of assertEquals(int, Integer.inValue()) was wrong.
- assertThat(result.get("REGISTRATIONTIME")).isEqualTo(new Date(20)) in HandlingEventRepositoryTest.java (in the testSave method) throw an exception, because equals call isn't symmetric between java.util.Date and java.sql.Timestamp. AssertJ and Junit equality assertion doesn't call equals method in the same way. One invoke expected.equals(actual) and the other actual.equals(expected).