FileDocCategorySizeDatePackage
ToyStackTest.javaAPI DocExample516Sun Mar 07 18:44:20 GMT 2004None

ToyStackTest

public class ToyStackTest extends TestCase
version
$Id: ToyStackTest.java,v 1.1 2004/03/08 00:44:19 ian Exp $

Fields Summary
private ToyStack
ts
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		junit.textui.TestRunner.run(ToyStackTest.class);
	
public voidsetUp()

		ts = new ToyStack();
	
public voidtestPeek()

		int i = 1066;
		ts.push(i);
		assertEquals(i, ts.peek());
	
public voidtestPushAndPop()

		int i = 123987;
		ts.push(i);
		assertEquals(i, ts.pop());