Annotation Interface VerifyBeanProperty
If used on ValueObjectTest this test checks / tests all Bean-properties.
Caution: The implementation for this contract assumes a valid bean regarding Java-Bean Spec, therefore a no-args public constructor is required.
In essence it checks the getters and setters. As default it assumes the
individual properties to not provide a default value. This can be controlled
using defaultValued()
- Author:
- Oliver Wolff
-
Optional Element Summary
Optional Elements
-
Element Details
-
exclude
- Returns:
- an array of properties, identified by their names that are not to be considered for this test: black-list
- Default:
- {}
-
of
- Returns:
- an array of properties, identified by their names that are to be considered for this test: white-list
- Default:
- {}
-
required
- Returns:
- an array of properties, identified by their names that are to be
treated as required properties, see
PropertyMetadata.isRequired()
- Default:
- {}
-
transientProperties
- Returns:
- an array of properties, identified by their names that are to be
treated as transient properties, see
PropertyMemberInfo.TRANSIENT
- Default:
- {}
-
defaultValued
- Returns:
- an array of properties, identified by their names that are to be
treated as having a default values, see
PropertyMetadata.isDefaultValue()
- Default:
- {}
-
readOnly
- Returns:
- an array of properties, identified by their names that are to be
treated as being read-only, see
PropertyReadWrite.READ_ONLY
, usually used in conjunction withdefaultValued()
- Default:
- {}
-
writeOnly
- Returns:
- an array of properties, identified by their names that are to be
treated as being write-only, see
PropertyReadWrite.WRITE_ONLY
, usually used in cases where a property to be written will result in other properties but itself can not be accessed directly
- Default:
- {}
-
assertUnorderedCollection
- Returns:
- an array of properties, identified by their names representing at
least a
Collection
that are to be asserted ignoring the concrete order, seePropertyConfig.assertionStrategy()
andAssertionStrategy.COLLECTION_IGNORE_ORDER
. The default implementation will always respect / assert the same order of elements.
- Default:
- {}
-