This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
If the assertion that the two objects are "equals" fails, then the first place to look is at the equals() method of the Module class. That's what the assertion is testing, right? And yet you haven't posted that method.
Nick Paul Maher
Joined: Apr 18, 2011
Thanks Paul for pointing me in the right direction, I didn't realise you were required to write your own equals method (still learning JAVA). After overriding the equals method in all classes the assertEquals now evaluates to true.