public interface PodamFactory
| Modifier and Type | Method and Description |
|---|---|
ClassInfoStrategy |
getClassStrategy()
It returns the class info strategy for this factory.
|
PodamFactory |
getExternalFactory()
It returns the external factory assigned to this factory.
|
DataProviderStrategy |
getStrategy()
It returns the strategy for this factory.
|
<T> T |
manufacturePojo(Class<T> pojoClass,
Type... genericTypeArgs)
Generic method which returns an instance of the given class filled with
dummy values, using the default data provider strategy.
|
<T> T |
manufacturePojoWithFullData(Class<T> pojoClass,
Type... genericTypeArgs)
Generic method which returns an instance of the given class filled with
dummy values, using the default data provider strategy.
|
<T> T |
populatePojo(T pojo,
Type... genericTypeArgs)
Generic method which populates an instance of the given class with
dummy values, using the default data provider strategy.
|
PodamFactory |
setClassStrategy(ClassInfoStrategy classInfoStrategy)
Sets the class info strategy for this factory
|
PodamFactory |
setExternalFactory(PodamFactory externalFactory)
Sets an external factory for this factory to delegate requests it cannot
process
|
PodamFactory |
setStrategy(DataProviderStrategy strategy)
Sets the data provider strategy for this factory
|
<T> T manufacturePojo(Class<T> pojoClass, Type... genericTypeArgs)
This method uses RandomDataProviderStrategyImpl as the default
implementation.
T - The type for which a filled instance is requiredpojoClass - The name of the class for which an instance filled with values
is requiredgenericTypeArgs - The generic Type arguments for a generic class instancePodamMockeryException - if a problem occurred while creating a POJO instance or while
setting its state<T> T manufacturePojoWithFullData(Class<T> pojoClass, Type... genericTypeArgs)
This method uses RandomDataProviderStrategyImpl as the default
implementation.
T - The type for which a filled instance is requiredpojoClass - The name of the class for which an instance filled with values
is requiredgenericTypeArgs - The generic Type arguments for a generic class instancePodamMockeryException - if a problem occurred while creating a POJO instance or while
setting its state<T> T populatePojo(T pojo,
Type... genericTypeArgs)
This method uses RandomDataProviderStrategyImpl as the default
implementation.
T - The type for which a filled instance is requiredpojo - The instance to be filled with valuesgenericTypeArgs - The generic Type arguments for a generic class instancePodamMockeryException - if a problem occurred while creating a POJO instance or while
setting its stateDataProviderStrategy getStrategy()
PodamFactory setStrategy(DataProviderStrategy strategy)
strategy - A data provider strategy to be used by this factoryPodamFactory getExternalFactory()
PodamFactory setExternalFactory(PodamFactory externalFactory)
externalFactory - An external factory to be used by this factoryClassInfoStrategy getClassStrategy()
PodamFactory setClassStrategy(ClassInfoStrategy classInfoStrategy)
classInfoStrategy - A class info strategy to be used by this factoryCopyright © 2016. All rights reserved.