Class PropertyAccessTest
java.lang.Object
org.apache.torque.generator.source.transform.model.PropertyAccessTest
Tests for the PropertyAccess class.
- Version:
- $Id: $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidCheck whether a field ending with s can be accessed without the ending s.voidCheck whether a field starting with an underscore can be accessed without the underscore.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidChecks that a collection field gets overwritten if it is set using a collection.voidvoidChecks that a collection setter field gets overwritten if it is set using a collection.voidChecks that a collection setter field gets overwritten if it is set using a collection.voidvoidvoidChecks that a collection setter field gets overwritten if it is set using a collection.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
PropertyAccessTest
public PropertyAccessTest()
-
-
Method Details
-
setUp
public void setUp() -
testPropertyAccessTargetNull
- Throws:
Exception
-
testPropertyAccessPropertyNameNull
- Throws:
Exception
-
testSetPropertyNotExistentField
- Throws:
Exception
-
testSetPropertyPrivateField
- Throws:
Exception
-
testSetPropertyProtectedField
- Throws:
Exception
-
testSetPropertyField
- Throws:
Exception
-
testSetPropertyPublicField
- Throws:
Exception
-
testSetPropertyPublicFieldEndingWithS
Check whether a field ending with s can be accessed without the ending s.- Throws:
Exception- if the test fails.
-
testSetPropertyPublicFieldStartingWithUnderscore
Check whether a field starting with an underscore can be accessed without the underscore.- Throws:
Exception- if the test fails.
-
testAccessPublicFieldFromBaseClass
- Throws:
Exception
-
testSetPropertyPublicFieldWrongClass
- Throws:
Exception
-
testSetPropertyIntFieldNull
- Throws:
Exception
-
testSetPropertyPublicStringField
- Throws:
Exception
-
testSetPropertyPublicStringFieldNull
- Throws:
Exception
-
testSetPropertyPublicStringArrayField
- Throws:
Exception
-
testSetPropertyPublicStringArrayFieldAlreadyFilled
- Throws:
Exception
-
testSetPropertyPublicStringArrayFieldNull
- Throws:
Exception
-
testSetPropertyPublicStringArrayFieldArray
- Throws:
Exception
-
testSetPropertyPublicStringCollectionField
- Throws:
Exception
-
testSetPropertyPublicStringCollectionFieldAlreadyFilled
- Throws:
Exception
-
testSetPropertyPublicStringCollectionFieldNull
- Throws:
Exception
-
testSetPropertyPublicStringCollectionFieldCollection
Checks that a collection field gets overwritten if it is set using a collection.- Throws:
Exception- if the test fails.
-
testSetPropertyPublicStringListField
- Throws:
Exception
-
testSetPropertyPublicStringSetField
- Throws:
Exception
-
testSetPropertyPublicStringQueueField
- Throws:
Exception
-
testSetPropertyPublicStringVectorField
- Throws:
Exception
-
testSetPropertyPublicBooleanFieldUsingConverter
- Throws:
Exception
-
testSetPropertyOnlyGetter
- Throws:
Exception
-
testSetPropertyPrivateSetter
- Throws:
Exception
-
testSetPropertyProtectedSetter
- Throws:
Exception
-
testSetPropertySetter
- Throws:
Exception
-
testSetPropertyPublicSetter
- Throws:
Exception
-
testSetPropertyPublicSetterEndingWithS
- Throws:
Exception
-
testSetPropertyPublicSetterFromBaseClass
- Throws:
Exception
-
testSetPropertyPublicSetterWrongClass
- Throws:
Exception
-
testSetPropertyIntSetterNull
- Throws:
Exception
-
testSetPropertyPublicStringSetter
- Throws:
Exception
-
testSetPropertyPublicStringSetterNull
- Throws:
Exception
-
testSetPropertyPublicStringArraySetter
- Throws:
Exception
-
testSetPropertyPublicStringArraySetterAlreadyFilled
- Throws:
Exception
-
testSetPropertyPublicStringArraySetterNull
- Throws:
Exception
-
testSetPropertyPublicStringArraySetterArray
- Throws:
Exception
-
testSetPropertyPublicStringArraySetterWithoutGetter
- Throws:
Exception
-
testSetPropertyPublicStringArrayGetterWithoutSetter
- Throws:
Exception
-
testSetPropertyPublicStringCollectionSetter
- Throws:
Exception
-
testSetPropertyPublicStringCollectionSetterAlreadyFilled
- Throws:
Exception
-
testSetPropertyPublicStringCollectionSetterNull
- Throws:
Exception
-
testSetPropertyPublicStringCollectionSetterCollection
Checks that a collection setter field gets overwritten if it is set using a collection.- Throws:
Exception- if the test fails.
-
testSetPropertyPublicStringListSetter
- Throws:
Exception
-
testSetPropertyPublicStringSetSetter
- Throws:
Exception
-
testSetPropertyPublicStringQueueSetter
- Throws:
Exception
-
testSetPropertyPublicStringVectorSetter
- Throws:
Exception
-
testSetPropertyPublicStringCollectionOnlyGetter
Checks that a collection setter field gets overwritten if it is set using a collection.- Throws:
Exception- if the test fails.
-
testSetPropertyPublicStringCollectionOnlyGetterAlreadyFilled
Checks that a collection setter field gets overwritten if it is set using a collection.- Throws:
Exception- if the test fails.
-
testSetPropertyPublicBooleanSetterWithConverter
- Throws:
Exception
-
testGetPropertyTypeNotExistentField
- Throws:
Exception
-
testGetPropertyTypePrivateField
- Throws:
Exception
-
testGetPropertyTypePublicIntField
- Throws:
Exception
-
testGetPropertyTypePublicStringField
- Throws:
Exception
-
testGetPropertyTypePublicIntSetter
- Throws:
Exception
-
testGetPropertyTypePublicStringSetter
- Throws:
Exception
-
testGetFirstGenericTypeArgumentNotExistentField
- Throws:
Exception
-
testGetFirstGenericTypeArgumentPrivateField
- Throws:
Exception
-
testGetFirstGenericTypeArgumentPublicIntField
- Throws:
Exception
-
testGetFirstGenericTypeArgumentPublicCollectionField
- Throws:
Exception
-
testGetFirstGenericTypeArgumentPublicCollectionSetter
- Throws:
Exception
-
testGetFirstGenericTypeArgumentPublicCollectionGetterWithoutSetter
- Throws:
Exception
-