|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataProviderStrategy
This interface defines the contact for PODAM data providers.
PODAM is a tool to fill POJOs with data. There are different requirements
when it comes to which data POJOs should be filled with. The default strategy
adopted by PODAM is to fill POJOs with random data. However other
requirements (e.g. http://www.jemos.eu/jira/browse/PDM-19) might want to
assign deterministic data using sequences, or other predictable sources of
data. In order to do so, all clients of PODAM will have to do is to provide
an implementation of this interface and pass it to the PodamFactory
method which manufactures a POJO.
Method Summary | |
---|---|
Boolean |
getBoolean()
It returns a boolean/Boolean value. |
Byte |
getByte()
It returns a byte/Byte value. |
Byte |
getByteInRange(byte minValue,
byte maxValue)
It returns a byte/Byte within min and max value (included). |
Character |
getCharacter()
It returns a char/Character value. |
Character |
getCharacterInRange(char minValue,
char maxValue)
It returns a char/Character value between min and max value (included). |
Double |
getDouble()
It returns a double/Double value |
Double |
getDoubleInRange(double minValue,
double maxValue)
It returns a double/Double value between min and max value (included). |
Float |
getFloat()
It returns a float/Float value. |
Float |
getFloatInRange(float minValue,
float maxValue)
It returns a float/Float value between min and max value (included). |
Integer |
getInteger()
It returns an int/Integer value. |
int |
getIntegerInRange(int minValue,
int maxValue)
It returns an int/Integer value between min and max value (included). |
Long |
getLong()
It returns a long/Long value. |
Long |
getLongInRange(long minValue,
long maxValue)
It returns a long/Long value between min and max value (included). |
Short |
getShort()
It returns a short/Short value. |
Short |
getShortInRange(short minValue,
short maxValue)
It returns a short/Short value between min and max value (included). |
String |
getStringOfLength(int length)
It returns a String of length characters. |
String |
getStringValue()
It returns a string value |
Method Detail |
---|
Boolean getBoolean()
Byte getByte()
Byte getByteInRange(byte minValue, byte maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
Character getCharacter()
Character getCharacterInRange(char minValue, char maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
Double getDouble()
Double getDoubleInRange(double minValue, double maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
Float getFloat()
Float getFloatInRange(float minValue, float maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
Integer getInteger()
int getIntegerInRange(int minValue, int maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
Long getLong()
Long getLongInRange(long minValue, long maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
Short getShort()
Short getShortInRange(short minValue, short maxValue)
minValue
- The minimum value for the returned valuemaxValue
- The maximum value for the returned value
String getStringValue()
String getStringOfLength(int length)
length
characters.
length
- The number of characters required in the returned String
length
characters
|
Jemos 2002 - 2011: All Rights Reserved. Podam runs under the MIT license | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |