Преглед изворни кода

Merge pull request #42 from greboid/dev

Improve test coverage for Queued LinkedHashSet.
pull/43/head
Chris Smith пре 9 година
родитељ
комит
d7a00ae6a0
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6
    0
      test/com/dmdirc/util/collections/QueuedLinkedHashSetTest.java

+ 6
- 0
test/com/dmdirc/util/collections/QueuedLinkedHashSetTest.java Прегледај датотеку

53
         set.element();
53
         set.element();
54
     }
54
     }
55
 
55
 
56
+    @Test
57
+    public void testElementWhenNotEmpty() {
58
+        set.offer("foo");
59
+        assertEquals("foo", set.element());
60
+    }
61
+
56
     @Test(expected = NoSuchElementException.class)
62
     @Test(expected = NoSuchElementException.class)
57
     public void testRemoveWhenNewlyCreated() {
63
     public void testRemoveWhenNewlyCreated() {
58
         set.remove();
64
         set.remove();

Loading…
Откажи
Сачувај