Class PropertyAccessTest


  • public class PropertyAccessTest
    extends Object
    Tests for the PropertyAccess class.
    Version:
    $Id: $
    • Constructor Detail

      • PropertyAccessTest

        public PropertyAccessTest()
    • Method Detail

      • setUp

        public void setUp()
      • testPropertyAccessTargetNull

        public void testPropertyAccessTargetNull()
                                          throws Exception
        Throws:
        Exception
      • testPropertyAccessPropertyNameNull

        public void testPropertyAccessPropertyNameNull()
                                                throws Exception
        Throws:
        Exception
      • testSetPropertyNotExistentField

        public void testSetPropertyNotExistentField()
                                             throws Exception
        Throws:
        Exception
      • testSetPropertyPrivateField

        public void testSetPropertyPrivateField()
                                         throws Exception
        Throws:
        Exception
      • testSetPropertyProtectedField

        public void testSetPropertyProtectedField()
                                           throws Exception
        Throws:
        Exception
      • testSetPropertyField

        public void testSetPropertyField()
                                  throws Exception
        Throws:
        Exception
      • testSetPropertyPublicField

        public void testSetPropertyPublicField()
                                        throws Exception
        Throws:
        Exception
      • testSetPropertyPublicFieldEndingWithS

        public void testSetPropertyPublicFieldEndingWithS()
                                                   throws Exception
        Check whether a field ending with s can be accessed without the ending s.
        Throws:
        Exception - if the test fails.
      • testSetPropertyPublicFieldStartingWithUnderscore

        public void testSetPropertyPublicFieldStartingWithUnderscore()
                                                              throws Exception
        Check whether a field starting with an underscore can be accessed without the underscore.
        Throws:
        Exception - if the test fails.
      • testAccessPublicFieldFromBaseClass

        public void testAccessPublicFieldFromBaseClass()
                                                throws Exception
        Throws:
        Exception
      • testSetPropertyPublicFieldWrongClass

        public void testSetPropertyPublicFieldWrongClass()
                                                  throws Exception
        Throws:
        Exception
      • testSetPropertyIntFieldNull

        public void testSetPropertyIntFieldNull()
                                         throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringField

        public void testSetPropertyPublicStringField()
                                              throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringFieldNull

        public void testSetPropertyPublicStringFieldNull()
                                                  throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArrayField

        public void testSetPropertyPublicStringArrayField()
                                                   throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArrayFieldAlreadyFilled

        public void testSetPropertyPublicStringArrayFieldAlreadyFilled()
                                                                throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArrayFieldNull

        public void testSetPropertyPublicStringArrayFieldNull()
                                                       throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArrayFieldArray

        public void testSetPropertyPublicStringArrayFieldArray()
                                                        throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionField

        public void testSetPropertyPublicStringCollectionField()
                                                        throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionFieldAlreadyFilled

        public void testSetPropertyPublicStringCollectionFieldAlreadyFilled()
                                                                     throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionFieldNull

        public void testSetPropertyPublicStringCollectionFieldNull()
                                                            throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionFieldCollection

        public void testSetPropertyPublicStringCollectionFieldCollection()
                                                                  throws Exception
        Checks that a collection field gets overwritten if it is set using a collection.
        Throws:
        Exception - if the test fails.
      • testSetPropertyPublicStringListField

        public void testSetPropertyPublicStringListField()
                                                  throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringSetField

        public void testSetPropertyPublicStringSetField()
                                                 throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringQueueField

        public void testSetPropertyPublicStringQueueField()
                                                   throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringVectorField

        public void testSetPropertyPublicStringVectorField()
                                                    throws Exception
        Throws:
        Exception
      • testSetPropertyPublicBooleanFieldUsingConverter

        public void testSetPropertyPublicBooleanFieldUsingConverter()
                                                             throws Exception
        Throws:
        Exception
      • testSetPropertyOnlyGetter

        public void testSetPropertyOnlyGetter()
                                       throws Exception
        Throws:
        Exception
      • testSetPropertyPrivateSetter

        public void testSetPropertyPrivateSetter()
                                          throws Exception
        Throws:
        Exception
      • testSetPropertyProtectedSetter

        public void testSetPropertyProtectedSetter()
                                            throws Exception
        Throws:
        Exception
      • testSetPropertySetter

        public void testSetPropertySetter()
                                   throws Exception
        Throws:
        Exception
      • testSetPropertyPublicSetter

        public void testSetPropertyPublicSetter()
                                         throws Exception
        Throws:
        Exception
      • testSetPropertyPublicSetterEndingWithS

        public void testSetPropertyPublicSetterEndingWithS()
                                                    throws Exception
        Throws:
        Exception
      • testSetPropertyPublicSetterFromBaseClass

        public void testSetPropertyPublicSetterFromBaseClass()
                                                      throws Exception
        Throws:
        Exception
      • testSetPropertyPublicSetterWrongClass

        public void testSetPropertyPublicSetterWrongClass()
                                                   throws Exception
        Throws:
        Exception
      • testSetPropertyIntSetterNull

        public void testSetPropertyIntSetterNull()
                                          throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringSetter

        public void testSetPropertyPublicStringSetter()
                                               throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringSetterNull

        public void testSetPropertyPublicStringSetterNull()
                                                   throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArraySetter

        public void testSetPropertyPublicStringArraySetter()
                                                    throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArraySetterAlreadyFilled

        public void testSetPropertyPublicStringArraySetterAlreadyFilled()
                                                                 throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArraySetterNull

        public void testSetPropertyPublicStringArraySetterNull()
                                                        throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArraySetterArray

        public void testSetPropertyPublicStringArraySetterArray()
                                                         throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArraySetterWithoutGetter

        public void testSetPropertyPublicStringArraySetterWithoutGetter()
                                                                 throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringArrayGetterWithoutSetter

        public void testSetPropertyPublicStringArrayGetterWithoutSetter()
                                                                 throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionSetter

        public void testSetPropertyPublicStringCollectionSetter()
                                                         throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionSetterAlreadyFilled

        public void testSetPropertyPublicStringCollectionSetterAlreadyFilled()
                                                                      throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionSetterNull

        public void testSetPropertyPublicStringCollectionSetterNull()
                                                             throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionSetterCollection

        public void testSetPropertyPublicStringCollectionSetterCollection()
                                                                   throws Exception
        Checks that a collection setter field gets overwritten if it is set using a collection.
        Throws:
        Exception - if the test fails.
      • testSetPropertyPublicStringListSetter

        public void testSetPropertyPublicStringListSetter()
                                                   throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringSetSetter

        public void testSetPropertyPublicStringSetSetter()
                                                  throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringQueueSetter

        public void testSetPropertyPublicStringQueueSetter()
                                                    throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringVectorSetter

        public void testSetPropertyPublicStringVectorSetter()
                                                     throws Exception
        Throws:
        Exception
      • testSetPropertyPublicStringCollectionOnlyGetter

        public void testSetPropertyPublicStringCollectionOnlyGetter()
                                                             throws Exception
        Checks that a collection setter field gets overwritten if it is set using a collection.
        Throws:
        Exception - if the test fails.
      • testSetPropertyPublicStringCollectionOnlyGetterAlreadyFilled

        public void testSetPropertyPublicStringCollectionOnlyGetterAlreadyFilled()
                                                                          throws Exception
        Checks that a collection setter field gets overwritten if it is set using a collection.
        Throws:
        Exception - if the test fails.
      • testSetPropertyPublicBooleanSetterWithConverter

        public void testSetPropertyPublicBooleanSetterWithConverter()
                                                             throws Exception
        Throws:
        Exception
      • testGetPropertyTypeNotExistentField

        public void testGetPropertyTypeNotExistentField()
                                                 throws Exception
        Throws:
        Exception
      • testGetPropertyTypePrivateField

        public void testGetPropertyTypePrivateField()
                                             throws Exception
        Throws:
        Exception
      • testGetPropertyTypePublicIntField

        public void testGetPropertyTypePublicIntField()
                                               throws Exception
        Throws:
        Exception
      • testGetPropertyTypePublicStringField

        public void testGetPropertyTypePublicStringField()
                                                  throws Exception
        Throws:
        Exception
      • testGetPropertyTypePublicIntSetter

        public void testGetPropertyTypePublicIntSetter()
                                                throws Exception
        Throws:
        Exception
      • testGetPropertyTypePublicStringSetter

        public void testGetPropertyTypePublicStringSetter()
                                                   throws Exception
        Throws:
        Exception
      • testGetFirstGenericTypeArgumentNotExistentField

        public void testGetFirstGenericTypeArgumentNotExistentField()
                                                             throws Exception
        Throws:
        Exception
      • testGetFirstGenericTypeArgumentPrivateField

        public void testGetFirstGenericTypeArgumentPrivateField()
                                                         throws Exception
        Throws:
        Exception
      • testGetFirstGenericTypeArgumentPublicIntField

        public void testGetFirstGenericTypeArgumentPublicIntField()
                                                           throws Exception
        Throws:
        Exception
      • testGetFirstGenericTypeArgumentPublicCollectionField

        public void testGetFirstGenericTypeArgumentPublicCollectionField()
                                                                  throws Exception
        Throws:
        Exception
      • testGetFirstGenericTypeArgumentPublicCollectionSetter

        public void testGetFirstGenericTypeArgumentPublicCollectionSetter()
                                                                   throws Exception
        Throws:
        Exception
      • testGetFirstGenericTypeArgumentPublicCollectionGetterWithoutSetter

        public void testGetFirstGenericTypeArgumentPublicCollectionGetterWithoutSetter()
                                                                                throws Exception
        Throws:
        Exception