FileDocCategorySizeDatePackage
EqualsDemoTest.javaAPI DocExample820Tue Jun 03 21:44:10 BST 2003None

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.3 2003/06/04 01:44:10 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()

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

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

 
		assertTrue(d1.equals(d1));