ToyStackTestpublic class ToyStackTest extends TestCase
Fields Summary |
---|
private ToyStack | ts |
Methods Summary |
---|
public static void | main(java.lang.String[] args)
junit.textui.TestRunner.run(ToyStackTest.class);
| public void | setUp()
ts = new ToyStack();
| public void | testPeek()
int i = 1066;
ts.push(i);
assertEquals(i, ts.peek());
| public void | testPushAndPop()
int i = 123987;
ts.push(i);
assertEquals(i, ts.pop());
|
|