com.atlassian.jira.pageobjects.config.junit4.rule
Class RuleChainBuilder

java.lang.Object
  extended by com.atlassian.jira.pageobjects.config.junit4.rule.RuleChainBuilder

public final class RuleChainBuilder
extends Object

Builds a rule chain based on a TestedProduct instance. The provided tested product must support injection as specified by InjectingTestedProducts.supportsInjection(com.atlassian.pageobjects.TestedProduct).

The rules can be passed either by instance, or by rule class, in which case the rule is instantiated by injection - it must be compatible with the JSR-330 injection rules.

Since:
5.1

Method Summary
 RuleChainBuilder around(Class<? extends org.junit.rules.TestRule> ruleClass)
           
 RuleChainBuilder around(org.junit.rules.TestRule rule)
           
 org.junit.rules.RuleChain build()
           
static RuleChainBuilder forProduct(com.atlassian.pageobjects.TestedProduct<?> product)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forProduct

public static RuleChainBuilder forProduct(com.atlassian.pageobjects.TestedProduct<?> product)

around

public RuleChainBuilder around(org.junit.rules.TestRule rule)

around

public RuleChainBuilder around(Class<? extends org.junit.rules.TestRule> ruleClass)

build

public org.junit.rules.RuleChain build()


Copyright © 2002-2013 Atlassian. All Rights Reserved.