FileDocCategorySizeDatePackage
MyStackTest.javaAPI DocExample609Sun Mar 07 17:19:28 GMT 2004None

MyStackTest

public class MyStackTest extends TestCase
JUnit test for MyStack.
author
ian

Fields Summary
MyStack
ss
MyStack
sd
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

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

		ss = new MyStack<String>();
		sd = new MyStack<Date>();
	
public voidtestHasNext()

	
public voidtestHasRoom()

	
public voidtestPop()

	
public voidtestPush()

		int i = 0; 
		do {
			ss.push("Hello #" + i++);
		} while (ss.hasRoom());
		assertEquals(i, MyStack.MAX);