Exemple #1
0
 @Test
 public void test_3elements() {
   prog3_5.insert(7);
   prog3_5.insert(8);
   prog3_5.insert(9);
   prog3_5.displayQueue();
   assertEquals(7, prog3_5.peek());
 }
Exemple #2
0
  @Test
  public void test_pop() {
    prog3_5.insert(7);
    prog3_5.insert(8);
    prog3_5.insert(9);

    prog3_5.remove();
    prog3_5.displayQueue();

    assertEquals(8, prog3_5.peek());
  }
Exemple #3
0
 @Test
 public void test_1element() {
   prog3_5.insert(7);
   assertEquals(7, prog3_5.peek());
 }