FileDocCategorySizeDatePackage
EqualsDemoTest.javaAPI DocExample806Sat Feb 17 13:42:14 GMT 2001None

EqualsDemoTest

public class EqualsDemoTest extends TestCase
some junit test cases for EqualsDemo writing a full set is left as "an exercise for the reader". Run as: $ java junit.textui.TestRunner EqualsDemoTest
version
$Id: EqualsDemoTest.java,v 1.1 2001/02/17 18:42:15 ian Exp $

Fields Summary
EqualsDemo
d1
an object being tested
EqualsDemo
d2
another object being tested
Constructors Summary
public EqualsDemoTest(String name)
constructor plumbing for junit

		super(name);
	
Methods Summary
public voidsetUp()
init() method

		d1 = new EqualsDemo();
		d2 = new EqualsDemo();
	
public voidtestCaution()

		assert(!d1.equals(null));
	
public voidtestSymmetric()

		assert(d1.equals(d2) && d2.equals(d1));
	
public voidtestSymmetry()

 
		assert(d1.equals(d1));