net.sf.navel.beans
Class ProxyFactoryTest

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

public class ProxyFactoryTest
extends java.lang.Object

Test case for exercises the construction and general constraints.

Author:
cmdln

Constructor Summary
ProxyFactoryTest()
           
 
Method Summary
protected  void setUp()
           
 void testBadData()
          Exercise the data type validation logic enforced during construction.
 void testConflict()
           
 void testCopy()
           
 void testImmutableWithConstructorDelegate()
           
 void testIntrospection()
          Make sure that an interface written to be used with the PropertyBeanHandler can be introspected like any other JavaBean.
 void testNestedDeep()
           
 void testNestedShallow()
           
 void testNestedUnmodifiable()
           
 void testSerialization()
          Make sure that a Navel Bean serializes correctly, without error.
 void testUnmodifiable()
           
 void testView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactoryTest

public ProxyFactoryTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
junit.framework.TestCase#setUp()

testIntrospection

public void testIntrospection()
                       throws java.beans.IntrospectionException
Make sure that an interface written to be used with the PropertyBeanHandler can be introspected like any other JavaBean.

Throws:
java.lang.Exception - Force an error if introspection fails.
java.beans.IntrospectionException

testSerialization

public void testSerialization()
                       throws UnsupportedFeatureException,
                              InvalidPropertyValueException
Make sure that a Navel Bean serializes correctly, without error.

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

testBadData

public void testBadData()
                 throws UnsupportedFeatureException
Exercise the data type validation logic enforced during construction.

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

testCopy

public void testCopy()

testView

public void testView()

testNestedShallow

public void testNestedShallow()

testNestedDeep

public void testNestedDeep()

testUnmodifiable

public void testUnmodifiable()

testNestedUnmodifiable

public void testNestedUnmodifiable()

testConflict

public void testConflict()

testImmutableWithConstructorDelegate

public void testImmutableWithConstructorDelegate()