| Package | Description |
|---|---|
| ch.powerunit |
Main functionnalities of powerunit.
|
| ch.powerunit.rules |
Default implementation or abstract for rule.
|
| Modifier and Type | Method and Description |
|---|---|
default TestRule |
TestSuite.after(Runnable... afters)
Build a after testrule.
|
static TestRule |
TestRule.after(Runnable after)
Build a after testrule.
|
default TestRule |
TestRule.around(java.util.function.Supplier<TestRule> inner)
Add an inner rule.
|
default TestRule |
TestRule.around(TestRule inner)
Add an inner rule.
|
default TestRule |
TestSuite.before(Runnable... befores)
Build a before testrule.
|
static TestRule |
TestRule.before(Runnable before)
Build a before testrule.
|
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,
java.util.function.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(java.util.function.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 |
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,
java.util.function.Supplier<String> propertyValue)
Set a system property before a test and ensure the correct restore.
|
Copyright © 2014. All rights reserved.