Преглед на файлове

Merge pull request #518 from morrme/patch-5

simple-linked-list: add hint to @Ignore annotations
Stuart Kent преди 9 години
родител
ревизия
b50265a137
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6
    6
      exercises/simple-linked-list/src/test/java/SimpleLinkedListTest.java

+ 6
- 6
exercises/simple-linked-list/src/test/java/SimpleLinkedListTest.java Целия файл

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