T - type of the Tester value.public interface Tester<T>
| Modifier and Type | Method and Description |
|---|---|
Tester<T> |
apply(Consumer<T> consumer)
Execute a given @{Consumer} for the current value.
|
Tester<T> |
compare(String fileName,
Comparison strategy)
Compare resource file to actual file for a given file name with a given
Comparison. |
void |
end()
Finish the test asserting that no errors happened
|
default Tester<T> |
execute(Runnable runnable)
Execute a given runnable.
|
<U> Tester<U> |
load(String fileName,
Load<U> strategy)
Load a file with a given @{Load} and assign the result to the
test value.
|
<U> Tester<U> |
map(Function<T,U> function)
Map the current value with with given @{Function} or set the given default value.
|
Tester<T> |
save(String fileName,
Save<T> strategy)
Save the current value to file with a given @{Save}
|
Tester<T> |
scenario(Scenario<T> scenario)
Execute a given scenario for each input file.
|
Tester<T> |
script(Consumer<Tester<T>> script)
Execute a given consumer on the current Tester.
|
<U> Tester<U> |
script(Script<T,U> script)
Execute a given script on the current Tester.
|
<U> Tester<U> |
value(U value)
Set the value that will be used as the input value for other actions.
|
<U> Tester<U> value(U value)
U - new Tester value type.value - to set.<U> Tester<U> load(String fileName, Load<U> strategy)
U - new Tester value type.fileName - to load.strategy - used to load the given fileName.<U> Tester<U> map(Function<T,U> function)
U - new Tester value type.function - used to map the current Tester value.Tester<T> apply(Consumer<T> consumer)
consumer - to apply on Tester value.Tester<T> save(String fileName, Save<T> strategy)
fileName - to save the current Tester value to.strategy - used to save current Tester value to the given fileName.Tester<T> compare(String fileName, Comparison strategy)
Comparison.fileName - of the resource and actual file to compare.strategy - to use to do the comparison.default Tester<T> execute(Runnable runnable)
runnable - to execute.Tester<T> script(Consumer<Tester<T>> script)
script - Consumer<U> Tester<U> script(Script<T,U> script)
U - new Tester value type.script - to execute.Tester<T> scenario(Scenario<T> scenario)
scenario - to execute.void end()
Copyright © 2016. All rights reserved.