1 package org.junit; 2 3 import java.lang.annotation.ElementType ; 4 import java.lang.annotation.Retention ; 5 import java.lang.annotation.RetentionPolicy ; 6 import java.lang.annotation.Target ; 7 8 45 @Retention (RetentionPolicy.RUNTIME) 46 @Target (ElementType.METHOD) 47 public @interface Test { 48 49 52 static class None extends Throwable { 53 private static final long serialVersionUID= 1L; 54 private None() { 55 } 56 } 57 58 62 Class <? extends Throwable > expected() default None.class; 63 64 67 long timeout() default 0L; 68 } 69 | Popular Tags |