Przeglądaj źródła

triangle: add hint to @Ignore annotations

morrme 9 lat temu
rodzic
commit
d5adac8a6c
1 zmienionych plików z 14 dodań i 14 usunięć
  1. 14
    14
      exercises/triangle/src/test/java/TriangleTest.java

+ 14
- 14
exercises/triangle/src/test/java/TriangleTest.java Wyświetl plik

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