Annotation-Category

package xu.zhi.hua.testTestNg.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Category {

    /**
     * 分类的名称
     * @return
     */
    public String name() default "";
}

你可能感兴趣的:(Annotation-Category)