com.atlassian.confluence.sanity.rules
Class EnvironmentRule
java.lang.Object
com.atlassian.confluence.sanity.rules.EnvironmentRule
- All Implemented Interfaces:
- org.junit.rules.TestRule
public class EnvironmentRule
- extends Object
- implements org.junit.rules.TestRule
Rule created to allow tests to be executed explicitly on matched environments only, if environment is not matched then the test will not run.
This is to cater for tests that can only run on certain environment such as Scroll Versions plugins only being installed on CAC.
Method Summary |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentRule
public EnvironmentRule()
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
- Specified by:
apply
in interface org.junit.rules.TestRule
Copyright © 2003–2015 Atlassian. All rights reserved.