Class AbstractTestRule<T extends Annotation>
java.lang.Object
net.sf.lightair.internal.junit.AbstractTestRule<T>
- Type Parameters:
T- Type of annotation that configures the test rule
- Direct Known Subclasses:
AwaitListTestRule, AwaitTestRule, SetupListTestRule, SetupTestRule, VerifyListTestRule, VerifyTestRule
Abstract base class for test rules.
-
Constructor Summary
ConstructorsModifierConstructorDescription<A extends Annotation>AbstractTestRule(Method testMethod, Class<T> annotationType, Class<A> alternativeAnnotationType) Constructor. -
Method Summary
-
Constructor Details
-
AbstractTestRule
public <A extends Annotation> AbstractTestRule(Method testMethod, Class<T> annotationType, Class<A> alternativeAnnotationType) Constructor.- Type Parameters:
A- Generic support param- Parameters:
testMethod- Java reflection method on which the test rule is being appliedannotationType- Type of annotation that configures the test rulealternativeAnnotationType- Alternative annotation type
-
-
Method Details
-
before
public void before()Executes before the test method. -
after
public void after()Executes after the test method. -
getAnnotation
-
getTestMethod
Return the test method on which the test rule is applied.- Returns:
- Test method
-