com.atlassian.confluence.sanity.rules
Class EnvironmentRule

java.lang.Object
  extended by 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.


Constructor Summary
EnvironmentRule()
           
 
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
 

Constructor Detail

EnvironmentRule

public EnvironmentRule()
Method Detail

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.