public final class NeedleBuilders extends Object
Modifier and Type | Method and Description |
---|---|
static DatabaseRuleBuilder |
databaseRule() |
static DatabaseRuleBuilder |
databaseRule(String configurationResourceName) |
static DatabaseTestRuleBuilder |
databaseTestRule() |
static org.junit.rules.RuleChain |
emptyRuleChain()
Returns a
RuleChain without a TestRule . |
static NeedleRuleBuilder |
needleMockitoRule() |
static NeedleTestRuleBuilder |
needleMockitoTestRule(Object testInstance) |
static NeedleRuleBuilder |
needleRule() |
static NeedleRuleBuilder |
needleRule(String configurationResourceName) |
static NeedleTestRuleBuilder |
needleTestRule(Object testInstance) |
static org.junit.rules.RuleChain |
outerRule(org.junit.rules.TestRule outerRule)
Returns a
RuleChain with a single TestRule . |
public static NeedleRuleBuilder needleRule()
NeedleRule
.public static NeedleRuleBuilder needleMockitoRule()
public static NeedleRuleBuilder needleRule(String configurationResourceName)
configurationResourceName
- the configuration to read (without properties-suffix)public static NeedleTestRuleBuilder needleTestRule(Object testInstance)
NeedleTestRule
.public static NeedleTestRuleBuilder needleMockitoTestRule(Object testInstance)
NeedleTestRule
with Mockito Provider
preconfigured.public static DatabaseTestRuleBuilder databaseTestRule()
DatabaseTestRule
.public static DatabaseRuleBuilder databaseRule()
DatabaseRule
.public static DatabaseRuleBuilder databaseRule(String configurationResourceName)
configurationResourceName
- config file to read (without .properties suffix)DatabaseRule
.public static org.junit.rules.RuleChain outerRule(org.junit.rules.TestRule outerRule)
RuleChain
with a single TestRule
. This method
is the usual starting point of a RuleChain
.outerRule
- the outer rule of the RuleChain
.RuleChain
with a single TestRule
.public static org.junit.rules.RuleChain emptyRuleChain()
RuleChain
without a TestRule
. This method may
be the starting point of a RuleChain
.RuleChain
without a TestRule
.Copyright © 2014. All rights reserved.