Package | Description |
---|---|
ch.powerunit |
Main functionnalities of powerunit.
|
ch.powerunit.rules |
Default implementation or abstract for rule.
|
Modifier and Type | Method and Description |
---|---|
default TestListenerRule |
TestSuite.testListenerRuleOf(Consumer<TestContext<Object>> onStart,
Consumer<TestContext<Object>> onEnd,
BiConsumer<TestContext<Object>,AssertionError> onFailure,
BiConsumer<TestContext<Object>,Throwable> onError,
BiConsumer<TestContext<Object>,AssumptionError> onAssumptionSkip)
Build a
TestListenerRule based on the various method. |
default TestListenerRule |
TestSuite.testListenerRuleOnEnd(Consumer<TestContext<Object>> onEnd)
Build a
TestListenerRule with only an action at end. |
default TestListenerRule |
TestSuite.testListenerRuleOnStart(Consumer<TestContext<Object>> onStart)
Build a
TestListenerRule with only an action at start. |
Modifier and Type | Interface and Description |
---|---|
interface |
ExternalResource
Default Rule to do some stuff before the test, and after (always).
|
interface |
SystemStreamRule
|
interface |
TemporaryFolder
This rule provides a way to support temporary folder.
|
Modifier and Type | Class and Description |
---|---|
class |
SystemPropertiesRule
Rule that restore system properties after test.
|
class |
TestContextRule
This rule can be used to have access to the
test execution
context from inside a test. |
Modifier and Type | Method and Description |
---|---|
static TestListenerRule |
TestListenerRule.of(Consumer<TestContext<Object>> onStart,
Consumer<TestContext<Object>> onEnd,
BiConsumer<TestContext<Object>,AssertionError> onFailure,
BiConsumer<TestContext<Object>,Throwable> onError,
BiConsumer<TestContext<Object>,AssumptionError> onAssumptionSkip)
Build a
TestListenerRule based on the various method. |
static TestListenerRule |
TestListenerRule.onEnd(Consumer<TestContext<Object>> onEnd)
Build a
TestListenerRule with only an action at end. |
static TestListenerRule |
TestListenerRule.onStart(Consumer<TestContext<Object>> onStart)
Build a
TestListenerRule with only an action at start. |
Copyright © 2015 Powerunit. All rights reserved.