|
15 | 15 | */ |
16 | 16 | package io.qameta.allure.test; |
17 | 17 |
|
18 | | -import io.qameta.allure.LabelAnnotation; |
| 18 | +import io.qameta.allure.Feature; |
19 | 19 |
|
20 | 20 | import java.lang.annotation.Documented; |
21 | 21 | import java.lang.annotation.ElementType; |
|
24 | 24 | import java.lang.annotation.RetentionPolicy; |
25 | 25 | import java.lang.annotation.Target; |
26 | 26 |
|
27 | | -import static io.qameta.allure.util.ResultsUtils.FEATURE_LABEL_NAME; |
28 | | - |
29 | 27 | /** |
30 | 28 | * @author charlie (Dmitry Baev). |
31 | 29 | */ |
|
37 | 35 | @Inherited |
38 | 36 | @Retention(RetentionPolicy.RUNTIME) |
39 | 37 | @Target({ElementType.METHOD, ElementType.TYPE}) |
40 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Basic framework support") |
| 38 | + @Feature("Basic framework support") |
41 | 39 | @interface Base { |
42 | 40 | } |
43 | 41 |
|
44 | 42 | @Documented |
45 | 43 | @Inherited |
46 | 44 | @Retention(RetentionPolicy.RUNTIME) |
47 | 45 | @Target({ElementType.METHOD, ElementType.TYPE}) |
48 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Parallel test execution support") |
| 46 | + @Feature("Parallel test execution support") |
49 | 47 | @interface Parallel { |
50 | 48 | } |
51 | 49 |
|
52 | 50 | @Documented |
53 | 51 | @Inherited |
54 | 52 | @Retention(RetentionPolicy.RUNTIME) |
55 | 53 | @Target({ElementType.METHOD, ElementType.TYPE}) |
56 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Full name") |
| 54 | + @Feature("Full name") |
57 | 55 | @interface FullName { |
58 | 56 | } |
59 | 57 |
|
60 | 58 | @Documented |
61 | 59 | @Inherited |
62 | 60 | @Retention(RetentionPolicy.RUNTIME) |
63 | 61 | @Target({ElementType.METHOD, ElementType.TYPE}) |
64 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Display name") |
| 62 | + @Feature("Display name") |
65 | 63 | @interface DisplayName { |
66 | 64 | } |
67 | 65 |
|
68 | 66 | @Documented |
69 | 67 | @Inherited |
70 | 68 | @Retention(RetentionPolicy.RUNTIME) |
71 | 69 | @Target({ElementType.METHOD, ElementType.TYPE}) |
72 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Descriptions") |
| 70 | + @Feature("Descriptions") |
73 | 71 | @interface Descriptions { |
74 | 72 | } |
75 | 73 |
|
76 | 74 | @Documented |
77 | 75 | @Inherited |
78 | 76 | @Retention(RetentionPolicy.RUNTIME) |
79 | 77 | @Target({ElementType.METHOD, ElementType.TYPE}) |
80 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Timings") |
| 78 | + @Feature("Timings") |
81 | 79 | @interface Timings { |
82 | 80 | } |
83 | 81 |
|
84 | 82 | @Documented |
85 | 83 | @Inherited |
86 | 84 | @Retention(RetentionPolicy.RUNTIME) |
87 | 85 | @Target({ElementType.METHOD, ElementType.TYPE}) |
88 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Steps") |
| 86 | + @Feature("Steps") |
89 | 87 | @interface Steps { |
90 | 88 | } |
91 | 89 |
|
92 | 90 | @Documented |
93 | 91 | @Inherited |
94 | 92 | @Retention(RetentionPolicy.RUNTIME) |
95 | 93 | @Target({ElementType.METHOD, ElementType.TYPE}) |
96 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Attachments") |
| 94 | + @Feature("Attachments") |
97 | 95 | @interface Attachments { |
98 | 96 | } |
99 | 97 |
|
100 | 98 | @Documented |
101 | 99 | @Inherited |
102 | 100 | @Retention(RetentionPolicy.RUNTIME) |
103 | 101 | @Target({ElementType.METHOD, ElementType.TYPE}) |
104 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Parameters") |
| 102 | + @Feature("Parameters") |
105 | 103 | @interface Parameters { |
106 | 104 | } |
107 | 105 |
|
108 | 106 | @Documented |
109 | 107 | @Inherited |
110 | 108 | @Retention(RetentionPolicy.RUNTIME) |
111 | 109 | @Target({ElementType.METHOD, ElementType.TYPE}) |
112 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Fixtures") |
| 110 | + @Feature("Fixtures") |
113 | 111 | @interface Fixtures { |
114 | 112 | } |
115 | 113 |
|
116 | 114 | @Documented |
117 | 115 | @Inherited |
118 | 116 | @Retention(RetentionPolicy.RUNTIME) |
119 | 117 | @Target({ElementType.METHOD, ElementType.TYPE}) |
120 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Links") |
| 118 | + @Feature("Links") |
121 | 119 | @interface Links { |
122 | 120 | } |
123 | 121 |
|
124 | 122 | @Documented |
125 | 123 | @Inherited |
126 | 124 | @Retention(RetentionPolicy.RUNTIME) |
127 | 125 | @Target({ElementType.METHOD, ElementType.TYPE}) |
128 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Marker annotations") |
| 126 | + @Feature("Marker annotations") |
129 | 127 | @interface MarkerAnnotations { |
130 | 128 | } |
131 | 129 |
|
132 | 130 | @Documented |
133 | 131 | @Inherited |
134 | 132 | @Retention(RetentionPolicy.RUNTIME) |
135 | 133 | @Target({ElementType.METHOD, ElementType.TYPE}) |
136 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Failed tests") |
| 134 | + @Feature("Failed tests") |
137 | 135 | @interface FailedTests { |
138 | 136 | } |
139 | 137 |
|
140 | 138 | @Documented |
141 | 139 | @Inherited |
142 | 140 | @Retention(RetentionPolicy.RUNTIME) |
143 | 141 | @Target({ElementType.METHOD, ElementType.TYPE}) |
144 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Broken tests") |
| 142 | + @Feature("Broken tests") |
145 | 143 | @interface BrokenTests { |
146 | 144 | } |
147 | 145 |
|
148 | 146 | @Documented |
149 | 147 | @Inherited |
150 | 148 | @Retention(RetentionPolicy.RUNTIME) |
151 | 149 | @Target({ElementType.METHOD, ElementType.TYPE}) |
152 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Passed tests") |
| 150 | + @Feature("Passed tests") |
153 | 151 | @interface PassedTests { |
154 | 152 | } |
155 | 153 |
|
156 | 154 | @Documented |
157 | 155 | @Inherited |
158 | 156 | @Retention(RetentionPolicy.RUNTIME) |
159 | 157 | @Target({ElementType.METHOD, ElementType.TYPE}) |
160 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Skipped tests") |
| 158 | + @Feature("Skipped tests") |
161 | 159 | @interface SkippedTests { |
162 | 160 | } |
163 | 161 |
|
164 | 162 | @Documented |
165 | 163 | @Inherited |
166 | 164 | @Retention(RetentionPolicy.RUNTIME) |
167 | 165 | @Target({ElementType.METHOD, ElementType.TYPE}) |
168 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Ignored tests") |
| 166 | + @Feature("Ignored tests") |
169 | 167 | @interface IgnoredTests { |
170 | 168 | } |
171 | 169 |
|
172 | 170 | @Documented |
173 | 171 | @Inherited |
174 | 172 | @Retention(RetentionPolicy.RUNTIME) |
175 | 173 | @Target({ElementType.METHOD, ElementType.TYPE}) |
176 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Not implemented tests") |
| 174 | + @Feature("Not implemented tests") |
177 | 175 | @interface NotImplementedTests { |
178 | 176 | } |
179 | 177 |
|
180 | 178 | @Documented |
181 | 179 | @Inherited |
182 | 180 | @Retention(RetentionPolicy.RUNTIME) |
183 | 181 | @Target({ElementType.METHOD, ElementType.TYPE}) |
184 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "History") |
| 182 | + @Feature("History") |
185 | 183 | @interface History { |
186 | 184 | } |
187 | 185 |
|
188 | 186 | @Documented |
189 | 187 | @Inherited |
190 | 188 | @Retention(RetentionPolicy.RUNTIME) |
191 | 189 | @Target({ElementType.METHOD, ElementType.TYPE}) |
192 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Retries") |
| 190 | + @Feature("Retries") |
193 | 191 | @interface Retries { |
194 | 192 | } |
195 | 193 |
|
196 | 194 | @Documented |
197 | 195 | @Inherited |
198 | 196 | @Retention(RetentionPolicy.RUNTIME) |
199 | 197 | @Target({ElementType.METHOD, ElementType.TYPE}) |
200 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Stages") |
| 198 | + @Feature("Stages") |
201 | 199 | @interface Stages { |
202 | 200 | } |
203 | 201 |
|
204 | 202 | @Documented |
205 | 203 | @Inherited |
206 | 204 | @Retention(RetentionPolicy.RUNTIME) |
207 | 205 | @Target({ElementType.METHOD, ElementType.TYPE}) |
208 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Trees") |
| 206 | + @Feature("Trees") |
209 | 207 | @interface Trees { |
210 | 208 | } |
211 | 209 |
|
212 | 210 | @Documented |
213 | 211 | @Inherited |
214 | 212 | @Retention(RetentionPolicy.RUNTIME) |
215 | 213 | @Target({ElementType.METHOD, ElementType.TYPE}) |
216 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Timeline") |
| 214 | + @Feature("Timeline") |
217 | 215 | @interface Timeline { |
218 | 216 | } |
219 | 217 |
|
220 | 218 | @Documented |
221 | 219 | @Inherited |
222 | 220 | @Retention(RetentionPolicy.RUNTIME) |
223 | 221 | @Target({ElementType.METHOD, ElementType.TYPE}) |
224 | | - @LabelAnnotation(name = FEATURE_LABEL_NAME, value = "Timeline") |
| 222 | + @Feature("Timeline") |
225 | 223 | @interface Severity { |
226 | 224 | } |
227 | 225 | } |
0 commit comments