30 |
30 |
31 public class Annotations { |
31 public class Annotations { |
32 |
32 |
33 @Retention(RetentionPolicy.RUNTIME) |
33 @Retention(RetentionPolicy.RUNTIME) |
34 @Target(ElementType.METHOD) |
34 @Target(ElementType.METHOD) |
|
35 public @interface BeforeEach { |
|
36 } |
|
37 |
|
38 @Retention(RetentionPolicy.RUNTIME) |
|
39 @Target(ElementType.METHOD) |
|
40 public @interface AfterEach { |
|
41 } |
|
42 |
|
43 @Retention(RetentionPolicy.RUNTIME) |
|
44 @Target(ElementType.METHOD) |
35 public @interface Test { |
45 public @interface Test { |
36 } |
46 } |
37 |
47 |
38 @Retention(RetentionPolicy.RUNTIME) |
48 @Retention(RetentionPolicy.RUNTIME) |
39 @Target(ElementType.METHOD) |
49 @Target(ElementType.METHOD) |
40 @Repeatable(Parameters.class) |
50 @Repeatable(ParameterGroup.class) |
41 public @interface Parameter { |
51 public @interface Parameter { |
42 |
52 |
43 String value(); |
53 String[] value(); |
|
54 } |
|
55 |
|
56 @Retention(RetentionPolicy.RUNTIME) |
|
57 @Target(ElementType.METHOD) |
|
58 public @interface ParameterGroup { |
|
59 |
|
60 Parameter[] value(); |
44 } |
61 } |
45 |
62 |
46 @Retention(RetentionPolicy.RUNTIME) |
63 @Retention(RetentionPolicy.RUNTIME) |
47 @Target(ElementType.METHOD) |
64 @Target(ElementType.METHOD) |
48 public @interface Parameters { |
65 public @interface Parameters { |
49 |
|
50 Parameter[] value(); |
|
51 } |
66 } |
52 } |
67 } |