net.sf.navel.beans
Class PropertyHandlerTest

java.lang.Object
  extended by net.sf.navel.beans.PropertyHandlerTest

public class PropertyHandlerTest
extends java.lang.Object

Test case for exercises the PropertyHandler, including failure modes.

Author:
cmdln

Constructor Summary
PropertyHandlerTest()
           
 
Method Summary
 void testBooleanAlt()
          Test support for the "is<property>" convention for reading boolean properties.
 void testEquals()
           
 void testID()
           
 void testObjectArray()
          Exercise the indexed property support of PropertyBeanHandler.
 void testPrimitiveArray()
          Same test as testObjectArray except performed on a primitive array, exercises the PrimitiveSupport class in particular.
 void testReadWrite()
          Test that the invoke method of the PropertyBeanHandler successfully discriminiates each property access, for a mixture of readable and writable properties.
 void testToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyHandlerTest

public PropertyHandlerTest()
Method Detail

testReadWrite

public void testReadWrite()
                   throws UnsupportedFeatureException,
                          InvalidPropertyValueException
Test that the invoke method of the PropertyBeanHandler successfully discriminiates each property access, for a mixture of readable and writable properties.

Throws:
UnsupportedFeatureException - Construction should work fine, error otherwise.
InvalidPropertyValueException - Construction should work fine, error otherwise.

testObjectArray

public void testObjectArray()
                     throws InvalidPropertyValueException,
                            UnsupportedFeatureException
Exercise the indexed property support of PropertyBeanHandler. Need to be sure that the regular assignment of Object[] type properties works, as well as the indexed accesses, including all the requisite type munging, except for primitives

Throws:
InvalidPropertyValueException - Construction should work fine, error otherwise.
UnsupportedFeatureException - Construction should work fine, error otherwise.

testPrimitiveArray

public void testPrimitiveArray()
                        throws UnsupportedFeatureException,
                               InvalidPropertyValueException
Same test as testObjectArray except performed on a primitive array, exercises the PrimitiveSupport class in particular.

Throws:
InvalidPropertyValueException - Construction should work fine, error otherwise.
UnsupportedFeatureException - Construction should work fine, error otherwise.

testBooleanAlt

public void testBooleanAlt()
                    throws UnsupportedFeatureException,
                           InvalidPropertyValueException
Test support for the "is<property>" convention for reading boolean properties.

Throws:
InvalidPropertyValueException - Construction should work fine, error otherwise.
UnsupportedFeatureException - Construction should work fine, error otherwise.

testToString

public void testToString()

testEquals

public void testEquals()

testID

public void testID()