@TestInterface(value=ch.powerunit.function.impl.FunctionTesterImpl.class) public final class FunctionTester<T,R> extends Object
Modifier and Type | Method and Description |
---|---|
List<Supplier<T>> |
getInput()
Used by the framework.
|
List<Supplier<String>> |
getName()
Used by the framework.
|
List<Supplier<Matcher<? super R>>> |
getResult()
Used by the framework.
|
Function<T,R> |
getUnderTest()
Used by the framework.
|
static <T,R> FunctionTesterStartDSL<T,R> |
of(Function<T,R> functionUnderTest)
Start the creation of a tester of function.
|
public static <T,R> FunctionTesterStartDSL<T,R> of(Function<T,R> functionUnderTest)
T
- the input argument typeR
- the result typefunctionUnderTest
- the function to be testedthe DSL
NullPointerException
- when functionUnderTest is nullTestDelegate
public Function<T,R> getUnderTest()
public List<Supplier<Matcher<? super R>>> getResult()
Copyright © 2015 Powerunit. All rights reserved.