|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.Handler
jetif.impl.DefaultHandler
jetif.handler.RandomHandler
This class RandomHandler is a handler used to generate pseudorandom
integer number as test parameters. This handler only support short, int, long
types yet. User should specify a random number with a range in the spec with the
format "xxx ~ xxx".
<param handler="random" type="int">-12 ~ 128</param> <param handler="random" type="long">-12 ~ 7234567890</param>
| Constructor Summary | |
RandomHandler()
Default Contructor |
|
| Method Summary | |
protected Class |
getQualifiedClass(String type,
Class clazz)
|
boolean |
matches(String value,
String type,
Object obj)
Indicate an object matches the expected value. |
boolean |
reusable()
Indicate that if this handler can be reuse for different object. |
boolean |
supports(String type,
Class clazz)
Test if a type can be converted to specified class with this handler. |
Object |
toObject(String value,
String type,
Class clazz)
Convert a string value to object of specified class. |
| Methods inherited from class jetif.impl.DefaultHandler |
getClass, getWrapperClass |
| Methods inherited from class jetif.Handler |
getProperty, getProperty, isInstanceClass, setProperties, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RandomHandler()
| Method Detail |
public Object toObject(String value,
String type,
Class clazz)
throws UnsupportedTypeException,
ConversionException
Handler
UnsupportedTypeException
ConversionException
public boolean supports(String type,
Class clazz)
Handler
public boolean matches(String value,
String type,
Object obj)
Handler
public boolean reusable()
Handler
protected Class getQualifiedClass(String type,
Class clazz)
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||