public static class Param.DataSupplier extends Object
PotentialAssignment. This is the place where we can
specify what the data type of the returned data would be. We can also specify different return types for
different test methods.| Constructor and Description |
|---|
Param.DataSupplier() |
| Modifier and Type | Method and Description |
|---|---|
List<org.junit.experimental.theories.PotentialAssignment> |
getValueSources(EasyFrameworkMethod method,
String testMethodName,
EasyParamSignature signature)
Method to return the list of data for the given Test method
|
List<org.junit.experimental.theories.PotentialAssignment> |
handleMethodInjection(EasyFrameworkMethod method,
EasyParamSignature signature) |
boolean |
injectData(EasyFrameworkMethod method)
Whether Test method expects data to be injected using @Inject annotation
|
void |
setDateTimeFormatToUse(DateTimeFormat dateTimeFormatToUse) |
public List<org.junit.experimental.theories.PotentialAssignment> getValueSources(EasyFrameworkMethod method, String testMethodName, EasyParamSignature signature)
method - the method under testsignature - the ParameterSignaturetestMethodName - the name of the currently executing test methodPotentialAssignmentpublic boolean injectData(EasyFrameworkMethod method)
method - the method under testpublic void setDateTimeFormatToUse(DateTimeFormat dateTimeFormatToUse)
dateTimeFormatToUse - the dateTimeFormatToUse to setpublic List<org.junit.experimental.theories.PotentialAssignment> handleMethodInjection(EasyFrameworkMethod method, EasyParamSignature signature)
Copyright © 2014. All rights reserved.