@@ -109,6 +109,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
109
109
false ,
110
110
false ,
111
111
bs .timeOut (),
112
+ bs .priority (),
112
113
new String [0 ]);
113
114
} else if (annotationClass == IAfterSuite .class ) {
114
115
AfterSuite bs = (AfterSuite ) a ;
@@ -136,6 +137,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
136
137
false ,
137
138
false ,
138
139
bs .timeOut (),
140
+ bs .priority (),
139
141
new String [0 ]);
140
142
} else if (annotationClass == IBeforeTest .class ) {
141
143
BeforeTest bs = (BeforeTest ) a ;
@@ -163,6 +165,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
163
165
false ,
164
166
false ,
165
167
bs .timeOut (),
168
+ bs .priority (),
166
169
new String [0 ]);
167
170
} else if (annotationClass == IAfterTest .class ) {
168
171
AfterTest bs = (AfterTest ) a ;
@@ -190,6 +193,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
190
193
false ,
191
194
false ,
192
195
bs .timeOut (),
196
+ bs .priority (),
193
197
new String [0 ]);
194
198
} else if (annotationClass == IBeforeGroups .class ) {
195
199
BeforeGroups bs = (BeforeGroups ) a ;
@@ -218,6 +222,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
218
222
false ,
219
223
false ,
220
224
bs .timeOut (),
225
+ bs .priority (),
221
226
new String [0 ]);
222
227
} else if (annotationClass == IAfterGroups .class ) {
223
228
AfterGroups bs = (AfterGroups ) a ;
@@ -246,6 +251,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
246
251
false ,
247
252
false ,
248
253
bs .timeOut (),
254
+ bs .priority (),
249
255
new String [0 ]);
250
256
} else if (annotationClass == IBeforeClass .class ) {
251
257
BeforeClass bs = (BeforeClass ) a ;
@@ -273,6 +279,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
273
279
false ,
274
280
false ,
275
281
bs .timeOut (),
282
+ bs .priority (),
276
283
new String [0 ]);
277
284
} else if (annotationClass == IAfterClass .class ) {
278
285
AfterClass bs = (AfterClass ) a ;
@@ -300,6 +307,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
300
307
false ,
301
308
false ,
302
309
bs .timeOut (),
310
+ bs .priority (),
303
311
new String [0 ]);
304
312
} else if (annotationClass == IBeforeMethod .class ) {
305
313
BeforeMethod bs = (BeforeMethod ) a ;
@@ -327,6 +335,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
327
335
bs .firstTimeOnly (),
328
336
false ,
329
337
bs .timeOut (),
338
+ bs .priority (),
330
339
bs .onlyForGroups ());
331
340
} else if (annotationClass == IAfterMethod .class ) {
332
341
AfterMethod bs = (AfterMethod ) a ;
@@ -354,6 +363,7 @@ private IAnnotation maybeCreateNewConfigurationTag(Annotation a, Class<?> annota
354
363
false ,
355
364
bs .lastTimeOnly (),
356
365
bs .timeOut (),
366
+ bs .priority (),
357
367
bs .onlyForGroups ());
358
368
}
359
369
@@ -383,6 +393,7 @@ private IAnnotation createConfigurationTag(
383
393
boolean firstTimeOnly ,
384
394
boolean lastTimeOnly ,
385
395
long timeOut ,
396
+ int priority ,
386
397
String [] groupFilters ) {
387
398
ConfigurationAnnotation result = new ConfigurationAnnotation ();
388
399
result .setIsBeforeGroups (isBeforeGroups );
@@ -410,6 +421,7 @@ private IAnnotation createConfigurationTag(
410
421
result .setFirstTimeOnly (firstTimeOnly );
411
422
result .setLastTimeOnly (lastTimeOnly );
412
423
result .setTimeOut (timeOut );
424
+ result .setPriority (priority );
413
425
414
426
return result ;
415
427
}
0 commit comments