1 package com.clickconcepts.junit.annotation;
2
3 import java.lang.annotation.*;
4
5 /**
6 * Initially this is just a marker annotation to be used by a JUnit4 Test case in conjunction
7 * with ExpectedTestFailure @Rule to indicate that a test is supposed to be failing
8 */
9 @Documented
10 @Retention(RetentionPolicy.RUNTIME)
11 @Target(value = ElementType.METHOD)
12 public @interface ExpectedFailure {
13 // TODO: enhance by adding specific information about what type of failure expected
14 //Class<? extends Throwable> assertType() default Throwable.class;
15
16 /**
17 * Text based reason for marking test as ExpectedFailure
18 * @return String
19 */
20 String reason() default "";
21 }