public final class ITUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.junit.rules.RuleChain |
createRuleChain(long timeout,
TimeUnit timeUnit)
Creates a rule chain containing the following rules:
a timeout rule
a rule to print console messages at the start and end of each test method and print trace level
log messages on test failure.
|
static org.junit.rules.RuleChain |
createRuleChain(org.junit.rules.TestRule gateway,
org.kaazing.k3po.junit.rules.K3poRule robot)
Creates a rule (chain) out of a k3po rule and gateway rule, adding extra rules as follows:
a timeout rule to have tests time out if they run for more than 10 seconds
a rule to print console messages at the start and end of each test method and print trace level
log messages on test failure.
|
static org.junit.rules.RuleChain |
createRuleChain(org.junit.rules.TestRule gateway,
org.kaazing.k3po.junit.rules.K3poRule robot,
long timeout,
TimeUnit timeUnit)
Creates a rule (chain) out of a k3po rule and gateway rule, adding extra rules as follows:
a timeout rule
a rule to print console messages at the start and end of each test method and print trace level
log messages on test failure.
|
static org.junit.rules.RuleChain |
createRuleChain(org.junit.rules.TestRule gateway,
long timeout,
TimeUnit timeUnit)
Creates a rule (chain) out of a gateway or other rule, adding extra rules as follows:
a timeout rule
a rule to print console messages at the start and end of each test method and print trace level
log messages on test failure.
|
static org.junit.rules.TestRule |
timeoutRule(long timeout,
TimeUnit timeUnit) |
static org.junit.rules.TestRule |
toTestRule(org.junit.rules.MethodRule in) |
public static org.junit.rules.RuleChain createRuleChain(org.junit.rules.TestRule gateway,
org.kaazing.k3po.junit.rules.K3poRule robot)
gateway - Rule to start up and shut down the gatewayrobot - Rule to startup and stop k3popublic static org.junit.rules.RuleChain createRuleChain(org.junit.rules.TestRule gateway,
org.kaazing.k3po.junit.rules.K3poRule robot,
long timeout,
TimeUnit timeUnit)
gateway - Rule to start up and shut down the gateway (or acceptor or etc)robot - Rule to startup and stop k3potimeout - The maximum allowed time duration of each testtimeUnit - The unit for the timeoutpublic static org.junit.rules.RuleChain createRuleChain(org.junit.rules.TestRule gateway,
long timeout,
TimeUnit timeUnit)
rule - Rule to startup and stop gatewaytimeout - The maximum allowed time duration of each test (including the gateway rule)timeUnit - The unit for the timeoutpublic static org.junit.rules.RuleChain createRuleChain(long timeout,
TimeUnit timeUnit)
timeout - The maximum allowed time duration of the testtimeUnit - The unit for the timeoutpublic static org.junit.rules.TestRule timeoutRule(long timeout,
TimeUnit timeUnit)
public static org.junit.rules.TestRule toTestRule(org.junit.rules.MethodRule in)
Copyright © 2014–2017. All rights reserved.