test/jdk/tools/jpackage/helpers/jdk/jpackage/test/Annotations.java
branchJDK-8200758-branch
changeset 58648 3bf53ffa9ae7
parent 58416 f09bf58c1f17
equal deleted inserted replaced
58647:2c43b89b1679 58648:3bf53ffa9ae7
    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 }