Package | Description |
---|---|
ch.powerunit |
Main functionnalities of powerunit.
|
ch.powerunit.rules |
Default implementation or abstract for rule.
|
Modifier and Type | Method and Description |
---|---|
static TestRule |
TestRule.after(Consumer<TestContext<Object>> after)
Build a after testrule.
|
default TestRule |
TestSuite.after(Runnable... afters)
Build a after testrule.
|
static TestRule |
TestRule.after(Runnable after)
Build a after testrule.
|
default TestRule |
TestSuite.afterContextAware(Consumer<TestContext<Object>>... afters)
Build a after testrule that will receive the
TestContext . |
default TestRule |
TestRule.around(Supplier<TestRule> inner)
Add an inner rule.
|
default TestRule |
TestRule.around(TestRule inner)
Add an inner rule.
|
static TestRule |
TestRule.before(Consumer<TestContext<Object>> before)
Build a before testrule.
|
default TestRule |
TestSuite.before(Runnable... befores)
Build a before testrule.
|
static TestRule |
TestRule.before(Runnable before)
Build a before testrule.
|
default TestRule |
TestSuite.beforeContextAware(Consumer<TestContext<Object>>... befores)
Build a before testrule that will receive the
TestContext . |
default TestRule |
TestSuite.mockitoRule()
Create a rule to support mockito.
|
static TestRule |
TestRule.mockitoRule()
Create a rule to support mockito.
|
default TestRule |
TestSuite.systemPropertiesRule(String... propertiesName)
Create a rule to restore some system properties after the test
|
default TestRule |
TestSuite.systemProperty(String propertyName,
String propertyValue)
Set a property before the run and ensure correct restore.
|
default TestRule |
TestSuite.systemProperty(String propertyName,
Supplier<String> propertyValue)
Set a property before the run and ensure correct restore.
|
Modifier and Type | Method and Description |
---|---|
default TestRule |
TestRule.around(TestRule inner)
Add an inner rule.
|
Modifier and Type | Method and Description |
---|---|
default TestRule |
TestRule.around(Supplier<TestRule> inner)
Add an inner rule.
|
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.
|
interface |
TestListenerRule
This can be use to support taking action depending on the issue of the test.
|
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 TestRule |
SystemPropertiesRule.setSystemPropertyBeforeTestAndRestoreAfter(String propertyName,
String propertyValue)
Set a system property before a test and ensure the correct restore.
|
static TestRule |
SystemPropertiesRule.setSystemPropertyBeforeTestAndRestoreAfter(String propertyName,
Supplier<String> propertyValue)
Set a system property before a test and ensure the correct restore.
|
Copyright © 2015 Powerunit. All rights reserved.