public class SkipTestRule extends Object implements org.junit.rules.TestRule
SkipLongRunning annotation either on a test method or on a test suite. If
it finds the annotation, it will only run the test method/suite if the system property skipLongRunningTests has the
value true| Constructor and Description |
|---|
SkipTestRule() |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
private static org.junit.runners.model.Statement |
emptyStatement(String reason,
org.junit.runner.Description description) |
private <T extends Annotation> |
hasAnnotation(org.junit.runner.Description description,
Class<T> annotationClass) |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleprivate <T extends Annotation> T hasAnnotation(org.junit.runner.Description description, Class<T> annotationClass)
private static org.junit.runners.model.Statement emptyStatement(String reason, org.junit.runner.Description description)
Copyright © 2016 JBoss by Red Hat. All rights reserved.