FileDocCategorySizeDatePackage
Ch03_01Test.javaAPI DocExample1140Thu Oct 23 13:16:36 BST 2003org.eclipsebook.ch03

Ch03_01Test

public class Ch03_01Test extends junit.framework.TestCase
author
Steven Holzner To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Fields Summary
Ch03_01
testObject
Constructors Summary
public Ch03_01Test(String arg0)
Constructor for Ch03_01Test.

param
arg0

		super(arg0);
	
Methods Summary
protected voidsetUp()

		super.setUp();
		testObject = new Ch03_01(); 
	
protected voidtearDown()

		super.tearDown();
	
public voidtestAllocate()

		assertNotNull(testObject.allocate());
	
public voidtestGet()

		testObject.allocate();
		assertEquals(testObject.get(1), 1);
	
public voidtestSet()

		testObject.allocate();
		assertTrue(testObject.set(2, 3));