Skip navigation links
A B C D E F G H I M N O P R S T 

A

accept(Class) - Method in class ch.powerunit.surefire.PowerUnitProviderScannerFilter
 
addFieldToEachEntry(T) - Static method in class ch.powerunit.helpers.StreamParametersMapFunction
Provide a way to add a field to head parameter line.
addFieldToEachEntry(T) - Method in interface ch.powerunit.TestSuite
Provide a way to add a field to each parameter line.
addListener(TestResultListener<T>) - Method in interface ch.powerunit.PowerUnitRunner
Add a test result listener.
after() - Method in interface ch.powerunit.rules.ExternalResource
Code to be done after.
after() - Method in class ch.powerunit.rules.SystemPropertiesRule
 
after(Runnable) - Static method in interface ch.powerunit.TestRule
Build a after testrule.
after(Runnable...) - Method in interface ch.powerunit.TestSuite
Build a after testrule.
ALL_GROUPS - Static variable in interface ch.powerunit.TestResultListener
String used a groups parameter when the test doesn't belong to any groups.
andMap(int, Function<T, R>) - Method in class ch.powerunit.helpers.StreamParametersMapFunction
Defines an additional Parameter Mapper function.
andThenAlways(Statement<P, T>) - Method in interface ch.powerunit.Statement
Aggregate this statement and then the following.
andThenOnlySuccess(Statement<P, T>) - Method in interface ch.powerunit.Statement
Aggregate this statement and then the following.
apply(T[]) - Method in class ch.powerunit.helpers.StreamParametersMapFunction
 
around(Statement<P, T>, Statement<P, T>, Statement<P, T>) - Static method in interface ch.powerunit.Statement
Build a around statement (do something, then something others, and after one a third statement, event in case of exception.
around(TestRule) - Method in interface ch.powerunit.TestRule
Add an inner rule.
around(Supplier<TestRule>) - Method in interface ch.powerunit.TestRule
Add an inner rule.
AssertThatException<T extends Throwable> - Interface in ch.powerunit
DSL for assertion on exception result.
AssertThatIterable<T> - Interface in ch.powerunit
DSL on assertion on iterable.
AssertThatObject<T> - Interface in ch.powerunit
DSL for assertion on object.
AssertThatString - Interface in ch.powerunit
DSL for assertion on string result.
AssumptionError - Exception in ch.powerunit.exception
 
AssumptionError(String) - Constructor for exception ch.powerunit.exception.AssumptionError
Default constructor.

B

before() - Method in interface ch.powerunit.rules.ExternalResource
Code to be done before
before() - Method in class ch.powerunit.rules.SystemPropertiesRule
 
before(Runnable) - Static method in interface ch.powerunit.TestRule
Build a before testrule.
before(Runnable...) - Method in interface ch.powerunit.TestSuite
Build a before testrule.
build() - Method in interface ch.powerunit.rules.TemporaryFolder.TemporaryFolderBuilder
Build the temporary folder.

C

Categories - Annotation Type in ch.powerunit
Can be used to defined categories of this test classes.
ch.powerunit - package ch.powerunit
Main functionnalities of powerunit.
ch.powerunit.exception - package ch.powerunit.exception
Contains all the exception.
ch.powerunit.helpers - package ch.powerunit.helpers
Helpers capabilities
ch.powerunit.rules - package ch.powerunit.rules
Default implementation or abstract for rule.
ch.powerunit.surefire - package ch.powerunit.surefire
Surefire integration
computeStatement(Statement<TestContext<Object>, Throwable>) - Method in interface ch.powerunit.rules.TestListenerRule
 
computeStatement(Statement<TestContext<Object>, Throwable>) - Method in interface ch.powerunit.TestRule
The default implementation of test rule.
contains(T...) - Method in interface ch.powerunit.AssertThatIterable
Check that the iterable contains the items.
containsInAnyOrder(T...) - Method in interface ch.powerunit.AssertThatIterable
Check that the iterable contains the items in any order.
containsInAnyOrderMatching(Matcher<? super T>...) - Method in interface ch.powerunit.AssertThatIterable
Check that the iterable contains the items in any order.
containsMatching(Matcher<? super T>...) - Method in interface ch.powerunit.AssertThatIterable
Check that the iterable contains the items.
containsString(String) - Method in interface ch.powerunit.AssertThatString
Check that a string another string.

D

DEFAULT_OUT - Static variable in class ch.powerunit.PowerUnitMainRunner
 
DEFAULT_REGEX_FOR_ARRAY - Static variable in class ch.powerunit.helpers.StreamParametersMapFunction
This is the regex used to support the split in case the input is an array.
DSL - Static variable in interface ch.powerunit.TestSuite
A static field that is a testsuite (to avoid implementing TestSuite in test, in the rare case when it may be required).

E

end() - Method in interface ch.powerunit.rules.TemporaryFolder.TemporaryFolderBuilder
Move up from this folder.
endsWith(String) - Method in interface ch.powerunit.AssertThatString
Check that a string ends with another one.
ExternalResource - Interface in ch.powerunit.rules
Default Rule to do some stuff before the test, and after (always).

F

file(String) - Method in interface ch.powerunit.rules.TemporaryFolder.TemporaryFolderBuilder
Create a new file, in the current folder.
file(String, byte[]) - Method in interface ch.powerunit.rules.TemporaryFolder.TemporaryFolderBuilder
Create a new file, in the current folder.
folder(String) - Method in interface ch.powerunit.rules.TemporaryFolder.TemporaryFolderBuilder
Create a new folder, in the current folder.

G

getData() - Method in interface ch.powerunit.rules.TemporaryFolder.InitialFileEntry
the initial data of the file
getFiles() - Method in interface ch.powerunit.rules.TemporaryFolder.InitialFolderEntry
The list of files.
getFolders() - Method in interface ch.powerunit.rules.TemporaryFolder.InitialFolderEntry
The list of folder.
getFullTestName() - Method in interface ch.powerunit.TestContext
Return the current testName
getInitial() - Method in interface ch.powerunit.rules.TemporaryFolder
Get the initial temporary folder info
getLocalTestName() - Method in interface ch.powerunit.TestContext
Return the local test name
getName() - Method in interface ch.powerunit.rules.TemporaryFolder.InitialEntry
Get the name (file or folder)
getName() - Method in interface ch.powerunit.Statement
Used to provide a name (for internal use purpose).
getParameterName() - Method in interface ch.powerunit.TestContext
Return the ParameterName
getRootFolder() - Method in interface ch.powerunit.rules.TemporaryFolder
Get the rootFolder.
getSetName() - Method in interface ch.powerunit.TestContext
Return the current SetName
getSuites() - Method in class ch.powerunit.surefire.PowerUnitProvider
 
getTestCategories() - Method in interface ch.powerunit.TestContext
Return the test categories
getTestContext() - Method in class ch.powerunit.rules.TestContextRule
Retrieve the test context object.
getTestSuiteObject() - Method in interface ch.powerunit.TestContext
Return the object used for the test suite.

H

hasNotSize(int) - Method in interface ch.powerunit.AssertThatIterable
Check the size is not the one passed.
hasSize(int) - Method in interface ch.powerunit.AssertThatIterable
Check the size of the iterable.

I

Ignore - Annotation Type in ch.powerunit
Used to indicate a test to be ignored.
InternalError - Exception in ch.powerunit.exception
Internal error.
InternalError(String, Throwable) - Constructor for exception ch.powerunit.exception.InternalError
Default constructor.
InternalError(String) - Constructor for exception ch.powerunit.exception.InternalError
Default constructor.
invoke(Object) - Method in class ch.powerunit.surefire.PowerUnitProvider
 
is(Matcher<? super T>) - Method in interface ch.powerunit.AssertThatObject
Check that the object is matching the passed matcher.
is(T) - Method in interface ch.powerunit.AssertThatObject
Check that the object is the passed one (shortcut to Matcher.equalTo).
isA(Class<? super T>) - Method in interface ch.powerunit.AssertThatObject
Check that the object is of a specific class (or subclasses).
isNot(T) - Method in interface ch.powerunit.AssertThatObject
Check that the object is not the passed one.
isNot(Matcher<T>) - Method in interface ch.powerunit.AssertThatObject
Check that the object is not matching the passed matcher.
isNotNull() - Method in interface ch.powerunit.AssertThatObject
Check that the object is not null.
isNull() - Method in interface ch.powerunit.AssertThatObject
Check that the object is null.

M

main(String[]) - Static method in class ch.powerunit.PowerUnitMainRunner
The main method.
map(int, Function<T, R>) - Static method in class ch.powerunit.helpers.StreamParametersMapFunction
Start building a Parameter Mapper function, with an initial converter.
matcherPredicate(Matcher<T>) - Method in interface ch.powerunit.TestSuite
Expose a matcher as a predicate.
matchesRegex(Pattern) - Method in interface ch.powerunit.AssertThatString
Validate a string with a Pattern.
matchesRegex(String) - Method in interface ch.powerunit.AssertThatString
Validate a string with a regex.
mockitoRule() - Static method in interface ch.powerunit.TestRule
Create a rule to support mockito.
mockitoRule() - Method in interface ch.powerunit.TestSuite
Create a rule to support mockito.

N

newFile() - Method in interface ch.powerunit.rules.TemporaryFolder
Create a new file with generated name.
newFile(String) - Method in interface ch.powerunit.rules.TemporaryFolder
Create a new file with specified name.
newFile(String, byte[]) - Method in interface ch.powerunit.rules.TemporaryFolder
Create a new file with specified name and data.
newFolder() - Method in interface ch.powerunit.rules.TemporaryFolder
Create a new folder with generated name.
newFolder(String) - Method in interface ch.powerunit.rules.TemporaryFolder
Create a new folder with specified name.
notifyError(TestContext<T>, Throwable) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifyError(TestContext<T>, Throwable) - Method in interface ch.powerunit.TestResultListener
Notification of the end (error) of one single test.
notifyFailure(TestContext<T>, Throwable) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifyFailure(TestContext<T>, Throwable) - Method in interface ch.powerunit.TestResultListener
Notification of the end (failure) of one single test.
notifyParameterEnd(String, String) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifyParameterEnd(String, String) - Method in interface ch.powerunit.TestResultListener
Notification of the end of the tests for one parameter.
notifyParameterStart(String, String) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifyParameterStart(String, String) - Method in interface ch.powerunit.TestResultListener
Notification of the start of the tests for one parameter.
notifySetEnd(String, String) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifySetEnd(String, String) - Method in interface ch.powerunit.TestResultListener
Notification of the end of a set of test.
notifySetStart(String, String) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifySetStart(String, String) - Method in interface ch.powerunit.TestResultListener
Notification of the start of a set of test.
notifySkipped(TestContext<T>) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifySkipped(TestContext<T>) - Method in interface ch.powerunit.TestResultListener
Notification of the end (skipped) of one single test.
notifyStart(TestContext<T>) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifyStart(TestContext<T>) - Method in interface ch.powerunit.TestResultListener
Notification of the start of one single test.
notifySuccess(TestContext<T>) - Method in class ch.powerunit.surefire.PowerUnitProviderListener
 
notifySuccess(TestContext<T>) - Method in interface ch.powerunit.TestResultListener
Notification of the end (success) of one single test.

O

onAssumptionSkip(TestContext<Object>, AssumptionError) - Method in interface ch.powerunit.rules.TestListenerRule
Method used when an assumption error happened.
onEnd(TestContext<Object>) - Method in interface ch.powerunit.rules.ExternalResource
 
onEnd(TestContext<Object>) - Method in interface ch.powerunit.rules.TestListenerRule
Method used at the end of the test.
onError(TestContext<Object>, Throwable) - Method in interface ch.powerunit.rules.TestListenerRule
Method used when an error happened.
onFailure(TestContext<Object>, AssertionError) - Method in interface ch.powerunit.rules.TestListenerRule
Method used when a failure happened.
onStart(TestContext<Object>) - Method in interface ch.powerunit.rules.ExternalResource
 
onStart(TestContext<Object>) - Method in class ch.powerunit.rules.TestContextRule
 
onStart(TestContext<Object>) - Method in interface ch.powerunit.rules.TestListenerRule
Method used at the start of the test.

P

Parameter - Annotation Type in ch.powerunit
Field marker (public non static field), for parameterized test.
Parameters - Annotation Type in ch.powerunit
Used to mark a method (public static, returning Stream<Object[]>, 0-args) as method to provide test parameter.
parametersFilterUsingMatcher(Matcher<Object[]>) - Method in interface ch.powerunit.TestSuite
Provide a filter for stream parameters, to keep only parameters accepted by a matcher.
parametersMap(int, Function<T, R>) - Method in interface ch.powerunit.TestSuite
Start building a Parameter Mapper function, with an initial converter.
PowerUnitMainRunner - Class in ch.powerunit
Main class that can be used to run test.
PowerUnitProvider<T> - Class in ch.powerunit.surefire
 
PowerUnitProvider(ProviderParameters) - Constructor for class ch.powerunit.surefire.PowerUnitProvider
 
PowerUnitProviderListener<T> - Class in ch.powerunit.surefire
 
PowerUnitProviderListener(ConsoleLogger, RunListener, Class<?>) - Constructor for class ch.powerunit.surefire.PowerUnitProviderListener
 
PowerUnitProviderScannerFilter - Class in ch.powerunit.surefire
 
PowerUnitProviderScannerFilter(Properties) - Constructor for class ch.powerunit.surefire.PowerUnitProviderScannerFilter
 
PowerUnitRunner<T> - Interface in ch.powerunit
Default interface for the Power unit runner.

R

reflectionMethod(Object, Method) - Static method in interface ch.powerunit.Statement
Build a statement based on a method-
Rule - Annotation Type in ch.powerunit
Mark a field as the test rule chain.
run(P) - Method in interface ch.powerunit.Statement
Executable code.

S

setSystemPropertyBeforeTestAndRestoreAfter(String, Supplier<String>) - Static method in class ch.powerunit.rules.SystemPropertiesRule
Set a system property before a test and ensure the correct restore.
setSystemPropertyBeforeTestAndRestoreAfter(String, String) - Static method in class ch.powerunit.rules.SystemPropertiesRule
Set a system property before a test and ensure the correct restore.
startsWith(String) - Method in interface ch.powerunit.AssertThatString
Check that a string starts with another one.
Statement<P,T extends Throwable> - Interface in ch.powerunit
Definition of a statement (piece of code that can thrown Throwable).
StreamParametersMapFunction<T> - Class in ch.powerunit.helpers
This is a class that provide a way to transform stream of String to Object based on the @Parameter field type.
stringToParameterMap(Class<?>) - Static method in class ch.powerunit.helpers.StreamParametersMapFunction
Start building a Parameter Mapper function, assuming that the input are String, and using the type of the @Parameter field.
stringToParameterMap(Class<?>) - Method in interface ch.powerunit.TestSuite
Start building a Parameter Mapper function, assuming that the input are String, and using the type of the @Parameter field.
SystemPropertiesRule - Class in ch.powerunit.rules
Rule that restore system properties after test.
SystemPropertiesRule(String...) - Constructor for class ch.powerunit.rules.SystemPropertiesRule
Default constructor.
systemPropertiesRule(String...) - Method in interface ch.powerunit.TestSuite
Create a rule to restore some system properties after the test
systemProperty(String, Supplier<String>) - Method in interface ch.powerunit.TestSuite
Set a property before the run and ensure correct restore.
systemProperty(String, String) - Method in interface ch.powerunit.TestSuite
Set a property before the run and ensure correct restore.

T

TemporaryFolder - Interface in ch.powerunit.rules
This rule provides a way to support temporary folder.
temporaryFolder() - Method in interface ch.powerunit.TestSuite
Produces a new rule for the temporary folder.
TemporaryFolder.InitialEntry - Interface in ch.powerunit.rules
Generic part regarding initial context of a temporary folder.
TemporaryFolder.InitialFileEntry - Interface in ch.powerunit.rules
An initial file.
TemporaryFolder.InitialFolderEntry - Interface in ch.powerunit.rules
An initial folder.
TemporaryFolder.TemporaryFolderBuilder - Interface in ch.powerunit.rules
This is a builder for temporary folder.
temporaryFolderBuilder() - Method in interface ch.powerunit.TestSuite
Produces a new rule builder for the temporary folder.
Test - Annotation Type in ch.powerunit
Mark a method as being a test method.
TestContext<T> - Interface in ch.powerunit
This interface define the execution test context.
TestContextRule - Class in ch.powerunit.rules
This rule can be used to have access to the test execution context from inside a test.
TestContextRule() - Constructor for class ch.powerunit.rules.TestContextRule
 
TestListenerRule - Interface in ch.powerunit.rules
This can be use to support taking action depending on the issue of the test.
TestResultListener<T> - Interface in ch.powerunit
Test result listener.
TestRule - Interface in ch.powerunit
Definition of a test rule (modification of a test statement).
TestSuite - Interface in ch.powerunit
This is the interface to be implemented by test class, in order to have access to the test DSL.
throwException(Matcher<T>) - Method in interface ch.powerunit.AssertThatException
Define the matcher on the exception and execute the matcher validation.
A B C D E F G H I M N O P R S T 
Skip navigation links

Copyright © 2014. All rights reserved.