public abstract class AbstractVersionRule<T extends Annotation> extends Object implements org.junit.rules.TestRule
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractVersionRule.Version
This class compares only the major, minor and bugfix parts of a version number, all text past the bugfix version is ignored.
|
| Constructor and Description |
|---|
AbstractVersionRule(Class<T> annotationClass,
Supplier<AbstractVersionRule.Version> versionSupplier) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
protected abstract void |
compareVersions(org.junit.runner.Description description,
AbstractVersionRule.Version product,
AbstractVersionRule.Version annotation) |
protected abstract AbstractVersionRule.Version |
extractAnnotationVersion(T annotation) |
public AbstractVersionRule(Class<T> annotationClass, Supplier<AbstractVersionRule.Version> versionSupplier)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleprotected abstract AbstractVersionRule.Version extractAnnotationVersion(T annotation)
protected abstract void compareVersions(org.junit.runner.Description description,
AbstractVersionRule.Version product,
AbstractVersionRule.Version annotation)
Copyright © 2003–2021 Atlassian. All rights reserved.