org.softsmithy.devlib.junit
Class Tests

java.lang.Object
  extended by org.softsmithy.devlib.junit.Tests

public class Tests
extends Object

JUnit test utility methods.

Author:
puce

Method Summary
static void testEquals(Object o1, Object o2, Object o3, Object... unequalObjects)
          Tests the equals method of an object for reflexivity, symmetry, transitivity and non-nullity and tests if unequal objects are not equal.
static void testHashCode(Object o1, Object o2)
          Tests if equal objects have equal hashCode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

testHashCode

public static void testHashCode(Object o1,
                                Object o2)
Tests if equal objects have equal hashCode.

Parameters:
o1 - object 1
o2 - object 2

testEquals

public static void testEquals(Object o1,
                              Object o2,
                              Object o3,
                              Object... unequalObjects)
Tests the equals method of an object for reflexivity, symmetry, transitivity and non-nullity and tests if unequal objects are not equal.

Parameters:
o1 - object 1
o2 - object 2
o3 - object 3
unequalObjects - unequal objects


Copyright © 2010-2011 SoftSmithy. All Rights Reserved.