Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import org.junit.Before;
  2. import org.junit.Test;
  3.  
  4. import cs2800.OpStack;
  5. import cs2800.Symbol;
  6.  
  7. @SuppressWarnings("unused")
  8. public class TestOpStack {
  9.  
  10.  
  11. OpStack op = new OpStack();
  12.  
  13. @Before
  14. public void setUp() throws Exception {
  15. OpStack op = new OpStack();
  16. }
  17.  
  18.  
  19.  
  20. /**Test 2, testing push method
  21. *
  22. */
  23.  
  24. @Test
  25. public void TestPush() { //
  26. op.push(Symbol.SymbolEnum.PLUS);
  27. }
  28.  
  29. /**Test 3, testing pop method
  30. *
  31. */
  32.  
  33. @Test
  34. public void TestPop() { //
  35. op.pop(Symbol.SymbolEnum.PLUS);
  36. }
  37.  
  38. /**Test 4, testing is empty method
  39. *
  40. */
  41.  
  42. @Test
  43. public void TestIsEmpty() { //
  44. op.isEmpty();
  45. }
  46.  
  47.  
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement