A
- the annotation used for configuring the rulepublic abstract class AnnotatedMethodTemplate<A extends Annotation> extends Object implements org.junit.rules.TestRule
Modifier and Type | Field and Description |
---|---|
protected Class<A> |
annotationClass |
protected Class |
testClass |
Constructor and Description |
---|
AnnotatedMethodTemplate(Class testClass) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
protected abstract org.junit.runners.model.Statement |
applyForAnnotation(org.junit.runners.model.Statement statement,
org.junit.runner.Description description,
A annotation) |
protected final Class testClass
protected final Class<A extends Annotation> annotationClass
public AnnotatedMethodTemplate(Class testClass)
public final org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
protected abstract org.junit.runners.model.Statement applyForAnnotation(org.junit.runners.model.Statement statement, org.junit.runner.Description description, A annotation)
Copyright © 2003–2017 Atlassian. All rights reserved.