Просмотр исходного кода

Merge pull request #479 from morrme/ignoretriangle

triangle: add hint to @Ignore annotations
FridaTveit 9 лет назад
Родитель
Сommit
439ca5bc0b
1 измененных файлов: 14 добавлений и 14 удалений
  1. 14
    14
      exercises/triangle/src/test/java/TriangleTest.java

+ 14
- 14
exercises/triangle/src/test/java/TriangleTest.java Просмотреть файл

17
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
17
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
18
     }
18
     }
19
 
19
 
20
-    @Ignore
20
+    @Ignore("Remove to run test")
21
     @Test
21
     @Test
22
     public void largerEquilateralTrianglesAlsoHaveEqualSides() throws TriangleException {
22
     public void largerEquilateralTrianglesAlsoHaveEqualSides() throws TriangleException {
23
         Triangle triangle = new Triangle(10, 10, 10);
23
         Triangle triangle = new Triangle(10, 10, 10);
25
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
25
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
26
     }
26
     }
27
 
27
 
28
-    @Ignore
28
+    @Ignore("Remove to run test")
29
     @Test
29
     @Test
30
     public void isoscelesTrianglesHaveLastTwoSidesEqual() throws TriangleException {
30
     public void isoscelesTrianglesHaveLastTwoSidesEqual() throws TriangleException {
31
         Triangle triangle = new Triangle(3, 4, 4);
31
         Triangle triangle = new Triangle(3, 4, 4);
33
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
33
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
34
     }
34
     }
35
 
35
 
36
-    @Ignore
36
+    @Ignore("Remove to run test")
37
     @Test
37
     @Test
38
     public void isoscelesTrianglesHaveFirstAndLastSidesEqual() throws TriangleException {
38
     public void isoscelesTrianglesHaveFirstAndLastSidesEqual() throws TriangleException {
39
         Triangle triangle = new Triangle(4, 3, 4);
39
         Triangle triangle = new Triangle(4, 3, 4);
41
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
41
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
42
     }
42
     }
43
 
43
 
44
-    @Ignore
44
+    @Ignore("Remove to run test")
45
     @Test
45
     @Test
46
     public void isoscelesTrianglesHaveTwoFirstSidesEqual() throws TriangleException {
46
     public void isoscelesTrianglesHaveTwoFirstSidesEqual() throws TriangleException {
47
         Triangle triangle = new Triangle(4, 4, 3);
47
         Triangle triangle = new Triangle(4, 4, 3);
49
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
49
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
50
     }
50
     }
51
 
51
 
52
-    @Ignore
52
+    @Ignore("Remove to run test")
53
     @Test
53
     @Test
54
     public void isoscelesTrianglesHaveInFactExactlyTwoSidesEqual() throws TriangleException {
54
     public void isoscelesTrianglesHaveInFactExactlyTwoSidesEqual() throws TriangleException {
55
         Triangle triangle = new Triangle(10, 10, 2);
55
         Triangle triangle = new Triangle(10, 10, 2);
57
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
57
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
58
     }
58
     }
59
 
59
 
60
-    @Ignore
60
+    @Ignore("Remove to run test")
61
     @Test
61
     @Test
62
     public void scaleneTrianglesHaveNoEqualSides() throws TriangleException {
62
     public void scaleneTrianglesHaveNoEqualSides() throws TriangleException {
63
         Triangle triangle = new Triangle(3, 4, 5);
63
         Triangle triangle = new Triangle(3, 4, 5);
65
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
65
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
66
     }
66
     }
67
 
67
 
68
-    @Ignore
68
+    @Ignore("Remove to run test")
69
     @Test
69
     @Test
70
     public void scaleneTrianglesHaveNoEqualSidesAtLargerScaleEither() throws TriangleException {
70
     public void scaleneTrianglesHaveNoEqualSidesAtLargerScaleEither() throws TriangleException {
71
         Triangle triangle = new Triangle(10, 11, 12);
71
         Triangle triangle = new Triangle(10, 11, 12);
73
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
73
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
74
     }
74
     }
75
 
75
 
76
-    @Ignore
76
+    @Ignore("Remove to run test")
77
     @Test
77
     @Test
78
     public void scaleneTrianglesHaveNoEqualSidesInDescendingOrderEither() throws TriangleException {
78
     public void scaleneTrianglesHaveNoEqualSidesInDescendingOrderEither() throws TriangleException {
79
         Triangle triangle = new Triangle(5, 4, 2);
79
         Triangle triangle = new Triangle(5, 4, 2);
81
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
81
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
82
     }
82
     }
83
 
83
 
84
-    @Ignore
84
+    @Ignore("Remove to run test")
85
     @Test
85
     @Test
86
     public void verySmallTrianglesAreLegal() throws TriangleException {
86
     public void verySmallTrianglesAreLegal() throws TriangleException {
87
         Triangle triangle = new Triangle(0.4, 0.6, 0.3);
87
         Triangle triangle = new Triangle(0.4, 0.6, 0.3);
89
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
89
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
90
     }
90
     }
91
 
91
 
92
-    @Ignore
92
+    @Ignore("Remove to run test")
93
     @Test
93
     @Test
94
     public void trianglesWithNoSizeAreIllegal() throws TriangleException {
94
     public void trianglesWithNoSizeAreIllegal() throws TriangleException {
95
         thrown.expect(TriangleException.class);
95
         thrown.expect(TriangleException.class);
96
         new Triangle(0, 0, 0);
96
         new Triangle(0, 0, 0);
97
     }
97
     }
98
 
98
 
99
-    @Ignore
99
+    @Ignore("Remove to run test")
100
     @Test
100
     @Test
101
     public void trianglesWithNegativeSidesAreIllegal() throws TriangleException {
101
     public void trianglesWithNegativeSidesAreIllegal() throws TriangleException {
102
         thrown.expect(TriangleException.class);
102
         thrown.expect(TriangleException.class);
103
         new Triangle(3, 4, -5);
103
         new Triangle(3, 4, -5);
104
     }
104
     }
105
 
105
 
106
-    @Ignore
106
+    @Ignore("Remove to run test")
107
     @Test
107
     @Test
108
     public void trianglesViolatingTriangleInequalityAreIllegal() throws TriangleException {
108
     public void trianglesViolatingTriangleInequalityAreIllegal() throws TriangleException {
109
         thrown.expect(TriangleException.class);
109
         thrown.expect(TriangleException.class);
110
         new Triangle(1, 1, 3);
110
         new Triangle(1, 1, 3);
111
     }
111
     }
112
 
112
 
113
-    @Ignore
113
+    @Ignore("Remove to run test")
114
     @Test
114
     @Test
115
     public void trianglesViolatingTriangleInequalityAreIllegal2() throws TriangleException {
115
     public void trianglesViolatingTriangleInequalityAreIllegal2() throws TriangleException {
116
         thrown.expect(TriangleException.class);
116
         thrown.expect(TriangleException.class);
117
         new Triangle(2, 4, 2);
117
         new Triangle(2, 4, 2);
118
     }
118
     }
119
 
119
 
120
-    @Ignore
120
+    @Ignore("Remove to run test")
121
     @Test
121
     @Test
122
     public void trianglesViolatingTriangleInequalityAreIllegal3() throws TriangleException {
122
     public void trianglesViolatingTriangleInequalityAreIllegal3() throws TriangleException {
123
         thrown.expect(TriangleException.class);
123
         thrown.expect(TriangleException.class);