public final class

RuleChainBuilder

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.config.junit4.rule.RuleChainBuilder

Class Overview

Builds a rule chain based on a com.atlassian.pageobjects.TestedProduct instance. The provided tested product must support injection as specified by 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.

Summary

Nested Classes
class RuleChainBuilder.Conditionally  
Public Methods
RuleChainBuilder around(TestRule rule)
RuleChainBuilder around(Class<? extends TestRule> ruleClass)
RuleChain build()
static RuleChainBuilder forProduct(TestedProduct<?> product)
RuleChainBuilder when(boolean whether, RuleChainBuilder.Conditionally action)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public RuleChainBuilder around (TestRule rule)

public RuleChainBuilder around (Class<? extends TestRule> ruleClass)

public RuleChain build ()

public static RuleChainBuilder forProduct (TestedProduct<?> product)

public RuleChainBuilder when (boolean whether, RuleChainBuilder.Conditionally action)