This repository is to test the hashCode()
, equals()
and compareTo()
in JAVA objects.
* With literals and `new String()` constructor
* with same and different values
* With all combinations
EqualsAndHashCodeTest.java
file contains above test cases.
* With correct and wrong equals and hash code implementation
* With different data structure `HashMap`,`Set` and `ArrayList`
PersonTest.java
file contains above test cases.
* name
* name length
* age
* reverse
PersonTest.java
file contains above test cases.
* ArrayList with different types
* Do it with extends also.
PersonTest.java
file contains above test cases.