Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.Before;
- import org.junit.Test;
- import cs2800.OpStack;
- import cs2800.Symbol;
- @SuppressWarnings("unused")
- public class TestOpStack {
- OpStack op = new OpStack();
- @Before
- public void setUp() throws Exception {
- OpStack op = new OpStack();
- }
- /**Test 2, testing push method
- *
- */
- @Test
- public void TestPush() { //
- op.push(Symbol.SymbolEnum.PLUS);
- }
- /**Test 3, testing pop method
- *
- */
- @Test
- public void TestPop() { //
- op.pop(Symbol.SymbolEnum.PLUS);
- }
- /**Test 4, testing is empty method
- *
- */
- @Test
- public void TestIsEmpty() { //
- op.isEmpty();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement