Пример #1
0
 @Test
 public void testFull() {
   stack.push("Papir");
   stack.push("Prut");
   stack.push("Hej");
   assertTrue(stack.peek().equals("Hej"));
 }
Пример #2
0
 @Before
 public void setUp() {
   stack = new ListStack<>();
   stack.push("Mark");
   stack.push("Nick");
   stack.push("Hest");
 }