Browse Source

Merge pull request #518 from morrme/patch-5

simple-linked-list: add hint to @Ignore annotations
Stuart Kent 9 years ago
parent
commit
b50265a137

+ 6
- 6
exercises/simple-linked-list/src/test/java/SimpleLinkedListTest.java View File

@@ -19,7 +19,7 @@ public class SimpleLinkedListTest {
19 19
         assertThat(list.size(), is(0));
20 20
     }
21 21
 
22
-    @Ignore
22
+    @Ignore("Remove to run test")
23 23
     @Test
24 24
     public void canCreateFromArray() {
25 25
         Integer[] values = new Integer[]{1, 2, 3};
@@ -27,7 +27,7 @@ public class SimpleLinkedListTest {
27 27
         assertThat(list.size(), is(3));
28 28
     }
29 29
 
30
-    @Ignore
30
+    @Ignore("Remove to run test")
31 31
     @Test
32 32
     public void popOnEmptyListWillThrow() {
33 33
         thrown.expect(NoSuchElementException.class);
@@ -35,7 +35,7 @@ public class SimpleLinkedListTest {
35 35
         list.pop();
36 36
     }
37 37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39 39
     @Test
40 40
     public void popReturnsLastAddedElement() {
41 41
         SimpleLinkedList list = new SimpleLinkedList();
@@ -47,7 +47,7 @@ public class SimpleLinkedListTest {
47 47
         assertThat(list.size(), is(0));
48 48
     }
49 49
 
50
-    @Ignore
50
+    @Ignore("Remove to run test")
51 51
     @Test
52 52
     public void reverseReversesList() {
53 53
         SimpleLinkedList list = new SimpleLinkedList();
@@ -64,7 +64,7 @@ public class SimpleLinkedListTest {
64 64
         assertThat(list.pop(), is(5));
65 65
     }
66 66
 
67
-    @Ignore
67
+    @Ignore("Remove to run test")
68 68
     @Test
69 69
     public void canReturnListAsArray() {
70 70
         SimpleLinkedList list = new SimpleLinkedList();
@@ -77,7 +77,7 @@ public class SimpleLinkedListTest {
77 77
         assertEquals(list.asArray(Integer.class), expected);
78 78
     }
79 79
 
80
-    @Ignore
80
+    @Ignore("Remove to run test")
81 81
     @Test
82 82
     public void canReturnEmptyListAsEmptyArray() {
83 83
         SimpleLinkedList list = new SimpleLinkedList();