Package de.cuioss.test.valueobjects.api.property
package de.cuioss.test.valueobjects.api.property
Provides annotations for configuring / tweaking the management of
PropertyMetadata
objects that
represent the individual properties to be used for testing.
Property Handling
The handling of properties is the core-aspect of testing value-objects. The
individual properties are represented by instances of
PropertyMetadata
PropertyMetadata
consists of
three steps:
- Initially the object to be tested will be scanned using Javas Bean
Introspection for the properties. This is done using
ReflectionHelper.scanBeanTypeForProperties(java.lang.Class, de.cuioss.test.valueobjects.api.property.PropertyReflectionConfig)
(Object)}. The scanning can be adjusted / skipped by usingPropertyReflectionConfig
. - The annotations
PropertyConfig
andPropertyBuilderConfig
will be evaluated. The first two steps will be aggregated to a superset ofPropertyMetadata
to be used for all other tests. The result will be logged at info-level in order to simplify the adjustment. - The individual tests, e.g.
VerifyBeanProperty
can further tweak the properties for that test, e.g.VerifyBeanProperty.readOnly()
- The same goes for the
Object
contract tests, that can be adjusted usingObjectTestConfig
- Author:
- Oliver Wolff
-
Annotation InterfacesClassDescriptionWhile the test classes are capable of auto-detecting JavaProperties you need to adjust them from time to time.Wraps a number of
PropertyBuilderConfig
elements.While the test classes are capable of auto-detecting JavaProperties you need to adjust them from time to time.Wraps a number ofPropertyConfig
elements.While the test classes are capable of auto-detecting JavaProperties you need to adjust them from time to time.