public final class RuleChainBuilder extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
RuleChainBuilder.Conditionally |
Modifier and Type | Method and Description |
---|---|
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) |
RuleChainBuilder |
when(boolean whether,
RuleChainBuilder.Conditionally action) |
public static RuleChainBuilder forProduct(com.atlassian.pageobjects.TestedProduct<?> product)
public RuleChainBuilder around(org.junit.rules.TestRule rule)
public RuleChainBuilder around(Class<? extends org.junit.rules.TestRule> ruleClass)
public RuleChainBuilder when(boolean whether, RuleChainBuilder.Conditionally action)
public org.junit.rules.RuleChain build()
Copyright © 2002-2021 Atlassian. All Rights Reserved.