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

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(Consumer<TestContext<Object>>) - Static method in interface ch.powerunit.TestRule
Build a after testrule.
after(Runnable...) - Method in interface ch.powerunit.TestSuite
Build a after testrule.
afterContextAware(Consumer<TestContext<Object>>...) - Method in interface ch.powerunit.TestSuite
Build a after testrule that will receive the TestContext.
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.
as(Class<P>) - Method in interface ch.powerunit.AssertThatCastableObject
Cast the received value into a sub-class of the receiver, before applying the matcher.
as(Class<P>, Function<T, P>) - Method in interface ch.powerunit.AssertThatCastableObject
Convert a received object into another one, based on a passed converter.
AssertThatCastableObject<T> - Interface in ch.powerunit
This is an intermediate and optional step on assertion to cast an object into a sub-object.
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
This exception is throw when an assumption is not met.
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(Consumer<TestContext<Object>>) - Static method in interface ch.powerunit.TestRule
Build a before testrule.
before(Runnable...) - Method in interface ch.powerunit.TestSuite
Build a before testrule.
beforeContextAware(Consumer<TestContext<Object>>...) - Method in interface ch.powerunit.TestSuite
Build a before testrule that will receive the TestContext.
BiFunctionTester<T,U,R> - Class in ch.powerunit.bifunction
Tester for bifunction.
BiFunctionTesterDefineDSL<T,U,R> - Interface in ch.powerunit.bifunction.lang
Specify the expected result.
BiFunctionTesterEndDSL<T,U,R> - Interface in ch.powerunit.bifunction.lang
Create the tester.
BiFunctionTesterNextDSL<T,U,R> - Interface in ch.powerunit.bifunction.lang
Optionnally specify a name for the test case.
BiFunctionTesterStartDSL<T,U,R> - Interface in ch.powerunit.bifunction.lang
Specification of an argument for the test.
build() - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterEndDSL
Last step of the DSL, to create the test
build() - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL1
Build the instance of the tester.
build() - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLEnd
End the creation of the tester.
build() - Method in interface ch.powerunit.function.lang.FunctionTesterEndDSL
Last step of the DSL, to create the test
build() - Method in interface ch.powerunit.pattern.lang.PatternTester1
Return the tester.
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.bifunction - package ch.powerunit.bifunction
Tester for bifunction.
ch.powerunit.bifunction.lang - package ch.powerunit.bifunction.lang
Language package for bifunction tester.
ch.powerunit.collector - package ch.powerunit.collector
Tester for Collector.
ch.powerunit.collector.lang - package ch.powerunit.collector.lang
DSL support for tester of Collector.
ch.powerunit.comparator - package ch.powerunit.comparator
This package contains support to test Comparator.
ch.powerunit.comparator.lang - package ch.powerunit.comparator.lang
Language side for Comparator tester.
ch.powerunit.exception - package ch.powerunit.exception
Contains all the exception.
ch.powerunit.function - package ch.powerunit.function
Support for test framework of function.
ch.powerunit.function.lang - package ch.powerunit.function.lang
Language package for function tester.
ch.powerunit.helpers - package ch.powerunit.helpers
Helpers capabilities
ch.powerunit.mbean - package ch.powerunit.mbean
Exposed MBean by the PowerUnitMainRunner.
ch.powerunit.pattern - package ch.powerunit.pattern
Support for Pattern tester.
ch.powerunit.pattern.lang - package ch.powerunit.pattern.lang
This is the DSL for Pattern tester.
ch.powerunit.rules - package ch.powerunit.rules
Default implementation or abstract for rule.
ch.powerunit.surefire - package ch.powerunit.surefire
Surefire integration
CollectorTester<T,A,R> - Class in ch.powerunit.collector
This is a tester for Collector.
CollectorTesterDSL0<T,A,R> - Interface in ch.powerunit.collector.lang
DSL step of the builder of Collector tester.
CollectorTesterDSL1<T,A,R> - Interface in ch.powerunit.collector.lang
DSL step of the builder of Collector tester.
CollectorTesterDSL2<T,A,R> - Interface in ch.powerunit.collector.lang
DSL step of the builder of Collector tester.
CollectorTesterDSL3<T,A,R> - Interface in ch.powerunit.collector.lang
DSL step of the builder of Collector tester.
ComparatorTester<O,C extends Comparator<O>> - Class in ch.powerunit.comparator
This is a framework to simplify the testing of Comparator.
ComparatorTesterDSLEnd<O,C extends Comparator<O>> - Interface in ch.powerunit.comparator.lang
End of the DSL for Comparator test framework.
ComparatorTesterDSLEquals<O,C extends Comparator<O>> - Interface in ch.powerunit.comparator.lang
Specify the value that are equals than another one.
ComparatorTesterDSLGreater<O,C extends Comparator<O>> - Interface in ch.powerunit.comparator.lang
Specify the value that are greater than another one.
ComparatorTesterDSLLess<O,C extends Comparator<O>> - Interface in ch.powerunit.comparator.lang
Specify the value that are less than another one.
ComparatorTesterDSLStart<O,C extends Comparator<O>> - Interface in ch.powerunit.comparator.lang
First step of the DSL - Set the instance under test if necessary.
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.
disableBothStreams() - Static method in interface ch.powerunit.rules.SystemStreamRule
Provide a test rule that suppress both system err and system out.
disableBothStreams() - Method in interface ch.powerunit.TestSuite
Provide a test rule that suppress both system err and system out.
disableErrStream() - Static method in interface ch.powerunit.rules.SystemStreamRule
Provide a test rule that suppress the system err stream.
disableErrStream() - Method in interface ch.powerunit.TestSuite
Provide a test rule that suppress the system err stream.
disableOutStream() - Static method in interface ch.powerunit.rules.SystemStreamRule
Provide a test rule that suppress the system out stream.
disableOutStream() - Method in interface ch.powerunit.TestSuite
Provide a test rule that suppress the system out stream.
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.
equalTo(String) - Method in interface ch.powerunit.pattern.lang.PatternTester4
Specify an expected String for the group.
expecting(Matcher<? super R>) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL2
Validate that the result of the Stream.collect(java.util.stream.Collector) with the Collector under test and the current sample return a value matching this matcher.
expecting(R) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL2
Validate that the result of the Stream.collect(java.util.stream.Collector) with the Collector under test and the current sample return a value that is the received one.
expectingNull() - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL2
Validate that the result of the Stream.collect(java.util.stream.Collector) with the Collector under test and the current sample return a value that is null.
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.
FunctionTester<T,R> - Class in ch.powerunit.function
Tester for function.
FunctionTesterDefineDSL<T,R> - Interface in ch.powerunit.function.lang
Specify the expected result.
FunctionTesterEndDSL<T,R> - Interface in ch.powerunit.function.lang
Create the tester.
FunctionTesterNextDSL<T,R> - Interface in ch.powerunit.function.lang
Optionnally specify a name for the test case.
FunctionTesterStartDSL<T,R> - Interface in ch.powerunit.function.lang
Specification of an argument for the test.

G

getCollectorToTest() - Method in class ch.powerunit.collector.CollectorTester
Used by the framework.
getComparatorClass() - Method in class ch.powerunit.comparator.ComparatorTester
Used by the framework.
getCurrentResult() - Method in interface ch.powerunit.mbean.PowerUnitMXBean
Return the current testsuites at the moment.
getData() - Method in interface ch.powerunit.rules.TemporaryFolder.InitialFileEntry
the initial data of the file
getEqualSamples() - Method in class ch.powerunit.comparator.ComparatorTester
Used by the framework.
getExpectedCharacteristics() - Method in class ch.powerunit.collector.CollectorTester
Used by the framework.
getExpectedGroup() - Method in class ch.powerunit.pattern.PatternTester
Used by the framework.
getExpectedResult() - Method in class ch.powerunit.pattern.PatternTester
Used by the framework.
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
getGreaterSamples() - Method in class ch.powerunit.comparator.ComparatorTester
Used by the framework.
getHavingGroup() - Method in class ch.powerunit.pattern.PatternTester
Used by the framework.
getInitial() - Method in interface ch.powerunit.rules.TemporaryFolder
Get the initial temporary folder info
getInput() - Method in class ch.powerunit.function.FunctionTester
Used by the framework.
getInput1() - Method in class ch.powerunit.bifunction.BiFunctionTester
Used by the framework.
getInput2() - Method in class ch.powerunit.bifunction.BiFunctionTester
Used by the framework.
getInputs() - Method in class ch.powerunit.collector.CollectorTester
Used by the framework.
getInputs() - Method in class ch.powerunit.pattern.PatternTester
Used by the framework.
getLessSamples() - Method in class ch.powerunit.comparator.ComparatorTester
Used by the framework.
getLocalTestName() - Method in interface ch.powerunit.TestContext
Return the local test name
getName() - Method in class ch.powerunit.bifunction.BiFunctionTester
Used by the framework.
getName() - Method in class ch.powerunit.function.FunctionTester
Used by the framework.
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
getRealSystemErr() - Method in interface ch.powerunit.rules.SystemStreamRule
Return the system err that was set before entering the rule.
getRealSystemOut() - Method in interface ch.powerunit.rules.SystemStreamRule
Return the system out that was set before entering the rule.
getResult() - Method in class ch.powerunit.bifunction.BiFunctionTester
Used by the framework.
getResult() - Method in class ch.powerunit.function.FunctionTester
Used by the framework.
getResults() - Method in class ch.powerunit.collector.CollectorTester
Used by the framework.
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.
getUnderTest() - Method in class ch.powerunit.bifunction.BiFunctionTester
Used by the framework.
getUnderTest() - Method in class ch.powerunit.comparator.ComparatorTester
Used by the framework.
getUnderTest() - Method in class ch.powerunit.function.FunctionTester
Used by the framework.
getUnderTest() - Method in class ch.powerunit.pattern.PatternTester
Used by the framework.

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.
havingCharacteristics(Collector.Characteristics...) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL0
Specify what should be the characteristics that this Collector must have.
havingGroup(int) - Method in interface ch.powerunit.pattern.lang.PatternTester3
Specify that a group matched by the pattern, based on the sample String, have a specified value.

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.
matching(Matcher<String>) - Method in interface ch.powerunit.pattern.lang.PatternTester4
Specify a matcher to validate the group.
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

of(BiFunction<T, U, R>) - Static method in class ch.powerunit.bifunction.BiFunctionTester
Start the creation of a tester of function.
of(Collector<T, ?, R>) - Static method in class ch.powerunit.collector.CollectorTester
Return a builder to create a tester of Collector.
of(Class<T>, Class<T>, Collector<T, ?, R>) - Static method in class ch.powerunit.collector.CollectorTester
Return a builder to create a tester of Collector.
of(Class<C>) - Static method in class ch.powerunit.comparator.ComparatorTester
Use this method to start the DSL to test a comparator.
of(Function<T, R>) - Static method in class ch.powerunit.function.FunctionTester
Start the creation of a tester of function.
of(String) - Static method in class ch.powerunit.pattern.PatternTester
Start the DSL to create a tester of Pattern, based on a String.
of(Pattern) - Static method in class ch.powerunit.pattern.PatternTester
Start the DSL to create a tester of Pattern, based on a String.
of(Consumer<TestContext<Object>>, Consumer<TestContext<Object>>, BiConsumer<TestContext<Object>, AssertionError>, BiConsumer<TestContext<Object>, Throwable>, BiConsumer<TestContext<Object>, AssumptionError>) - Static method in interface ch.powerunit.rules.TestListenerRule
Build a TestListenerRule based on the various method.
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
This method delegate to the ExternalResource.after() method.
onEnd(TestContext<Object>) - Method in interface ch.powerunit.rules.TestListenerRule
Method used at the end of the test.
onEnd(Consumer<TestContext<Object>>) - Static method in interface ch.powerunit.rules.TestListenerRule
Build a TestListenerRule with only an action at end.
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
This method delegate to the ExternalResource.before() method.
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.
onStart(Consumer<TestContext<Object>>) - Static method in interface ch.powerunit.rules.TestListenerRule
Build a TestListenerRule with only an action at start.

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.
passingAsParameter(T, U) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterStartDSL
Specify the input argument.
passingAsParameter(Supplier<T>, Supplier<U>) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterStartDSL
Specify the input argument.
passingAsParameter(T) - Method in interface ch.powerunit.function.lang.FunctionTesterStartDSL
Specify the input argument.
passingAsParameter(Supplier<T>) - Method in interface ch.powerunit.function.lang.FunctionTesterStartDSL
Specify the input argument.
PatternTester - Class in ch.powerunit.pattern
This is a tester to validate Pattern.
PatternTester0 - Interface in ch.powerunit.pattern.lang
This a step in the process to create a tester of Pattern.
PatternTester1 - Interface in ch.powerunit.pattern.lang
This a step in the process to create a tester of Pattern.
PatternTester2 - Interface in ch.powerunit.pattern.lang
This a step in the process to create a tester of Pattern.
PatternTester3 - Interface in ch.powerunit.pattern.lang
This a step in the process to create a tester of Pattern.
PatternTester4 - Interface in ch.powerunit.pattern.lang
This a step in the process to create a tester of Pattern.
PowerUnitMainRunner - Class in ch.powerunit
Main class that can be used to run test.
PowerUnitMXBean - Interface in ch.powerunit.mbean
 
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

receiving(String) - Method in interface ch.powerunit.pattern.lang.PatternTester0
Specify an input String to be used as a sample for the Pattern under test.
reflectionMethod(Object, Method) - Static method in interface ch.powerunit.Statement
Build a statement based on a method-
reflectionMethod(Consumer<Object>, Object) - Static method in interface ch.powerunit.Statement
Build a statement based on a method-
replaceBothStream(PrintStream, PrintStream) - Static method in interface ch.powerunit.rules.SystemStreamRule
Provide a test rule that replace both system err and system out with the provided one.
replaceBothStream(PrintStream, PrintStream) - Method in interface ch.powerunit.TestSuite
Provide a test rule that replace both system err and system out with the provided one.
replaceErrStream(PrintStream) - Static method in interface ch.powerunit.rules.SystemStreamRule
Privde a test rule that replace the system err stream with the provided one
replaceErrStream(PrintStream) - Method in interface ch.powerunit.TestSuite
Privde a test rule that replace the system err stream with the provided one
replaceOutStream(PrintStream) - Static method in interface ch.powerunit.rules.SystemStreamRule
Privde a test rule that replace the system out stream with the provided one
replaceOutStream(PrintStream) - Method in interface ch.powerunit.TestSuite
Privde a test rule that replace the system out stream with the provided one
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.
SystemStreamRule - Interface in ch.powerunit.rules
This is a test rule to change the system out/ err stream.

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
 
TestDelegate - Annotation Type in ch.powerunit
This annotation can be used on a non static, final field in a test class as providing access to a test framework.
TestDelegator - Annotation Type in ch.powerunit
This annotation is used on test framework class.
TestInterface - Annotation Type in ch.powerunit
This annotation is used on a class that is the public interface of a test framework.
TestListenerRule - Interface in ch.powerunit.rules
This can be use to support taking action depending on the issue of the test.
testListenerRuleOf(Consumer<TestContext<Object>>, Consumer<TestContext<Object>>, BiConsumer<TestContext<Object>, AssertionError>, BiConsumer<TestContext<Object>, Throwable>, BiConsumer<TestContext<Object>, AssumptionError>) - Method in interface ch.powerunit.TestSuite
Build a TestListenerRule based on the various method.
testListenerRuleOnEnd(Consumer<TestContext<Object>>) - Method in interface ch.powerunit.TestSuite
Build a TestListenerRule with only an action at end.
testListenerRuleOnStart(Consumer<TestContext<Object>>) - Method in interface ch.powerunit.TestSuite
Build a TestListenerRule with only an action at start.
testNamed(String) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterNextDSL
Optionnally specify a name for the test case.
testNamed(Supplier<String>) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterNextDSL
Optionnally specify a name for the test case.
testNamed(String) - Method in interface ch.powerunit.function.lang.FunctionTesterNextDSL
Optionnally specify a name for the test case.
testNamed(Supplier<String>) - Method in interface ch.powerunit.function.lang.FunctionTesterNextDSL
Optionnally specify a name for the test case.
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.
thenExpectingResult(R) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterDefineDSL
Specify the expected result.
thenExpectingResult(Supplier<R>) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterDefineDSL
Specify the expected result.
thenExpectingResult(R) - Method in interface ch.powerunit.function.lang.FunctionTesterDefineDSL
Specify the expected result.
thenExpectingResult(Supplier<R>) - Method in interface ch.powerunit.function.lang.FunctionTesterDefineDSL
Specify the expected result.
thenExpectingResultThat(Matcher<? super R>) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterDefineDSL
Specify the expected result.
thenExpectingResultThat(Supplier<Matcher<? super R>>) - Method in interface ch.powerunit.bifunction.lang.BiFunctionTesterDefineDSL
Specify the expected result.
thenExpectingResultThat(Matcher<? super R>) - Method in interface ch.powerunit.function.lang.FunctionTesterDefineDSL
Specify the expected result.
thenExpectingResultThat(Supplier<Matcher<? super R>>) - Method in interface ch.powerunit.function.lang.FunctionTesterDefineDSL
Specify the expected result.
thenMatching() - Method in interface ch.powerunit.pattern.lang.PatternTester2
Specify that the received input String is accepted by the Pattern under test.
thenNoMatching() - Method in interface ch.powerunit.pattern.lang.PatternTester2
Specify that the received input String is not accepted by the Pattern under test.
throwException(Matcher<? super T>) - Method in interface ch.powerunit.AssertThatException
Define the matcher on the exception and execute the matcher validation.

U

usingInstance(C) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLStart
This method may be use to specify the instance to be used for the test of the comparator.

W

withEqualSamples(O...) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLEquals
Specify the values that are equals.
withEqualSamples(O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLEquals
Specify the values that are equals.
withEqualSamples(O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLEquals
Specify the values that are equals.
withEqualSamples(O, O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLEquals
Specify the values that are equals.
withEqualSamples(O, O, O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLEquals
Specify the values that are equals.
withGreaterSamples(O...) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLGreater
Specify the values that are greater.
withGreaterSamples(O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLGreater
Specify the values that are greater.
withGreaterSamples(O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLGreater
Specify the values that are greater.
withGreaterSamples(O, O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLGreater
Specify the values that are greater.
withGreaterSamples(O, O, O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLGreater
Specify the values that are greater.
withInput(Stream<T>) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input Stream to be used to test the Collector.
withLessSamples(O...) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLLess
Specify the values that are lesser.
withLessSamples(O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLLess
Specify the values that are lesser.
withLessSamples(O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLLess
Specify the values that are lesser.
withLessSamples(O, O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLLess
Specify the values that are lesser.
withLessSamples(O, O, O, O) - Method in interface ch.powerunit.comparator.lang.ComparatorTesterDSLLess
Specify the values that are lesser.
withParallelStreamFromList(List<T>) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input List that will be transformed as parallelStream and be used as a sample to test the Collector.
withStreamFromArray(T...) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input array that will be transformed as stream and be used as a sample to test the Collector .
withStreamFromArray(T) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input array that will be transformed as stream and be used as a sample to test the Collector .
withStreamFromArray(T, T) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input array that will be transformed as stream and be used as a sample to test the Collector .
withStreamFromArray(T, T, T) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input array that will be transformed as stream and be used as a sample to test the Collector .
withStreamFromArray(T, T, T, T) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input array that will be transformed as stream and be used as a sample to test the Collector .
withStreamFromArray(T, T, T, T, T) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input array that will be transformed as stream and be used as a sample to test the Collector .
withStreamFromList(List<T>) - Method in interface ch.powerunit.collector.lang.CollectorTesterDSL3
Specify a sample input List that will be transformed as stream and be used as a sample to test the Collector .
A B C D E F G H I M N O P R S T U W 
Skip navigation links

Copyright © 2015 Powerunit. All rights reserved.