|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.navel.beans.MethodHandlerTest
public class MethodHandlerTest
This class exercises the delegation mechanism in the DelegateBeanHandler. Delegation support is provided by extending PropertyBeanHandler and accepting an array of delegation targets during contruction. During the dynamic proxy call, anything that cannot be handled by the code in the parent class is then attempted to be match to a delegation target and invoked if possible.
Constructor Summary | |
---|---|
MethodHandlerTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testAttachValidation()
Test that construction with a mis-matched DelegationTarget fails. |
void |
testDelegation()
Exercise the DelegationTarget mechanism. |
void |
testInitialValues()
Test that construction with initial values still works as expected. |
void |
testLenientValidation()
Test that construction with a mis-matched DelegationTarget fails. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodHandlerTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
java.lang.Exception
junit.framework.TestCase#setUp()
public void testAttachValidation()
public void testLenientValidation()
public void testInitialValues()
public void testDelegation() throws UnsupportedFeatureException, InvalidPropertyValueException
UnsupportedFeatureException
- Not testing construction, fail.
InvalidPropertyValueException
- Not testing construction, fail.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |