|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.beanrunner.BeanRunner
Constructor Summary | |
BeanRunner()
|
Method Summary | |
void |
addTestValue(java.lang.Class type,
java.lang.Object value)
Add a new test value for any property of the given type. |
void |
excludeProperty(java.lang.String propertyName)
This method will add the name to a list of properties that need to be excluded for the automated testing. |
void |
testBean(java.lang.Object bean)
Test the properties that have both getters and setters. |
void |
testSerializable(java.io.Serializable bean)
Test that the bean can be serialized and deserialized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanRunner()
Method Detail |
public void addTestValue(java.lang.Class type, java.lang.Object value)
type
- the property typevalue
- the value to passpublic void testBean(java.lang.Object bean) throws java.lang.Exception
excludeProperty(String)
.
If the object implements Serializable, do a check to ensure it really is.
bean
- the object to test
java.lang.Exception
- on failurepublic void testSerializable(java.io.Serializable bean) throws java.io.IOException, java.lang.ClassNotFoundException
bean
- the object to test
java.io.IOException
- if the object cannot be serialized or deserialized
java.lang.ClassNotFoundException
- if the object cannot be deserializedpublic void excludeProperty(java.lang.String propertyName)
propertyName
- the name of the property to exclude
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |