Uses of Interface
de.cuioss.test.valueobjects.property.PropertyMetadata
Packages that use PropertyMetadata
Package
Description
API
Provides implementations for the contracts defined at
de.cuioss.test.valueobjects.api.contracts
and
ObjectTestContracts
Provides structures for dynamically creating objects
-
Uses of PropertyMetadata in de.cuioss.test.valueobjects
Methods in de.cuioss.test.valueobjects that return types with arguments of type PropertyMetadataModifier and TypeMethodDescriptionprotected List<PropertyMetadata>
PropertyAwareTest.resolvePropertyMetadata()
Resolves thePropertyMetadata
by using reflections and the annotationsPropertyConfig
and /PropertyConfigs
if providedMapperTest.resolveSourcePropertyMetadata()
Resolves thePropertyMetadata
for the source objects by using reflection and the annotationsPropertyConfig
and /PropertyConfigs
if provided.MapperTest.resolveTargetPropertyMetadata
(PropertyReflectionConfig config) Resolves thePropertyMetadata
for the target objects by using reflectionMethod parameters in de.cuioss.test.valueobjects with type arguments of type PropertyMetadataModifier and TypeMethodDescriptionprotected List<TestContract<T>>
ValueObjectTest.resolveTestContracts
(List<PropertyMetadata> initialMetadata) Resolves the concreteTestContract
s to be tested. -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.contract
Method parameters in de.cuioss.test.valueobjects.contract with type arguments of type PropertyMetadataModifier and TypeMethodDescriptionstatic final <T> Optional<TestContract<T>>
BeanPropertyContractImpl.createBeanPropertyTestContract
(Class<T> beanType, Class<?> annotated, List<PropertyMetadata> initialPropertyMetadata) Factory method for creating an instance ofBeanPropertyContractImpl
depending on the given parameterstatic final <T> Optional<BuilderContractImpl<T>>
BuilderContractImpl.createBuilderTestContract
(Class<T> beanType, Class<?> annotated, List<PropertyMetadata> initialPropertyMetadata) Factory method for creating an instance ofBuilderContractImpl
depending on the given parameterstatic final <T> Optional<CopyConstructorContractImpl<T>>
CopyConstructorContractImpl.createTestContract
(Class<T> beanType, Class<?> annotated, List<PropertyMetadata> initialPropertyMetadata, List<TestContract<T>> existingContracts) Factory method for creating a anCopyConstructorContractImpl
depending on the given parameterstatic final <T> List<ObjectCreatorContractImpl<T>>
ObjectCreatorContractImpl.createTestContracts
(Class<T> beanType, Class<?> annotated, List<PropertyMetadata> initialPropertyMetadata) Factory method for creating aList
of instances ofObjectCreatorContractImpl
depending on the given parameterstatic <T> List<TestContract<T>>
ContractRegistry.resolveTestContracts
(Class<T> targetBeanClass, Class<?> unitTestClass, List<PropertyMetadata> propertyMetadata) Resolves the concreteTestContract
s to be tested. -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.generator
Methods in de.cuioss.test.valueobjects.generator that return PropertyMetadataModifier and TypeMethodDescriptionCreates a configured instance ofPropertyMetadata
JavaTypesGenerator.metadata
(String name, CollectionType collectionType) Creates a configured instance ofPropertyMetadata
with the variant that the content is to be be used as collectionGenerator.JavaTypesGenerator.metadataRequired
(String name) Creates a configured instance ofPropertyMetadata
with the required attribute set totrue
-> Property is requiredJavaTypesGenerator.metadataRequired
(String name, CollectionType collectionType) Creates a configured instance ofPropertyMetadata
with the required attribute set totrue
-> Property is required and the variant that the content is to be be used as collectionGenerator. -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.objects
Method parameters in de.cuioss.test.valueobjects.objects with type arguments of type PropertyMetadataModifier and TypeMethodDescriptionRuntimeProperties.extractNames
(Collection<PropertyMetadata> metadata) Extracts the names of a givenCollection
ofPropertyMetadata
static List<PropertySupport>
RuntimeProperties.mapToPropertySupport
(Collection<PropertyMetadata> propertyMetadata, boolean generateTestValue) ParameterizedInstantiator.newInstance
(List<PropertyMetadata> properties) Similar toParameterizedInstantiator.newInstance(List, boolean)
but with the difference that the caller has no control regarding the set / applied properties, that may be need for some asserts.Constructor parameters in de.cuioss.test.valueobjects.objects with type arguments of type PropertyMetadataModifierConstructorDescriptionRuntimeProperties
(List<? extends PropertyMetadata> properties) Constructor.RuntimeProperties
(SortedSet<PropertyMetadata> properties) -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.objects.impl
Method parameters in de.cuioss.test.valueobjects.objects.impl with type arguments of type PropertyMetadataModifier and TypeMethodDescriptionAbstractInlineInstantiator.newInstance
(List<PropertyMetadata> properties) AbstractOrderedArgsInstantiator.newInstance
(List<PropertyMetadata> properties) BeanInstantiator.newInstance
(List<PropertyMetadata> properties) BuilderParameterizedInstantiator.newInstance
(List<PropertyMetadata> properties) CallbackAwareInstantiator.newInstance
(List<PropertyMetadata> properties) InjectedBeanInstantiator.newInstance
(List<PropertyMetadata> properties) -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.property.impl
Classes in de.cuioss.test.valueobjects.property.impl that implement PropertyMetadataModifier and TypeClassDescriptionclass
Extensions ofPropertyMetadata
that deals with builder-specific aspectsclass
Gathers all information needed for dynamically creating / asserting properties.Methods in de.cuioss.test.valueobjects.property.impl with parameters of type PropertyMetadataModifier and TypeMethodDescriptionPropertyMetadataImpl.builder
(PropertyMetadata copyFrom) int
PropertyMetadataImpl.compareTo
(PropertyMetadata other) BuilderMetadata.BuilderMetadataBuilder.delegateMetadata
(PropertyMetadata delegate) Defines a delegatePropertyMetadata
used for all attributes that are not builder specific, required.static BuilderMetadata
BuilderMetadata.wrapFromMetadata
(PropertyMetadata metadata) Simple converter for creating aBuilderMetadata
from any givenPropertyMetadata
with defaults for the methods. -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.property.util
Methods in de.cuioss.test.valueobjects.property.util with parameters of type PropertyMetadataModifier and TypeMethodDescriptionabstract Object
PropertyAccessStrategy.readProperty
(Object target, PropertyMetadata propertyMetadata) Reads the property from the given target;abstract Object
PropertyAccessStrategy.writeProperty
(Object target, PropertyMetadata propertyMetadata, Object propertyValue) Writes the property into the given target; -
Uses of PropertyMetadata in de.cuioss.test.valueobjects.util
Methods in de.cuioss.test.valueobjects.util that return PropertyMetadataModifier and TypeMethodDescriptionstatic PropertyMetadata
ReflectionHelper.createPropertyMetadata
(Class<?> beanType, de.cuioss.tools.property.PropertyHolder propertyHolder) Creates aPropertyMetadata
for a given field.Methods in de.cuioss.test.valueobjects.util that return types with arguments of type PropertyMetadataModifier and TypeMethodDescriptionstatic List<PropertyMetadata>
AnnotationHelper.constructorConfigToPropertyMetadata
(VerifyConstructor config, Collection<PropertyMetadata> givenMetadata) Creates aList
ofPropertyMetadata
according to the given parameterstatic List<PropertyMetadata>
AnnotationHelper.factoryConfigToPropertyMetadata
(VerifyFactoryMethod config, Collection<PropertyMetadata> givenMetadata) Creates aList
ofPropertyMetadata
according to the given parameterstatic List<PropertyMetadata>
BuilderPropertyHelper.handleBuilderPropertyConfigAnnotations
(Class<?> annotated, List<PropertyMetadata> givenMetadata) Checks the given type for the annotationPropertyBuilderConfig
andPropertyBuilderConfigs
and puts all found in the immutableList
to be returnedstatic List<PropertyMetadata>
AnnotationHelper.handleMetadataForBuilderTest
(Class<?> annotated, List<PropertyMetadata> givenMetadata) static List<PropertyMetadata>
AnnotationHelper.handleMetadataForMapperTest
(VerifyMapperConfiguration verifyMapper, List<PropertyMetadata> givenMetadata) static List<PropertyMetadata>
AnnotationHelper.handleMetadataForPropertyTest
(Class<?> annotated, List<PropertyMetadata> givenMetadata) static SortedSet<PropertyMetadata>
ReflectionHelper.handlePostProcess
(Class<?> annotated, SortedSet<PropertyMetadata> metatdata) Filters the given properties according to the annotated element given.static SortedSet<PropertyMetadata>
ReflectionHelper.handlePostProcessConfig
(PropertyReflectionConfig config, SortedSet<PropertyMetadata> metatdata) Filters the given properties according to the annotated element given.static final Collection<PropertyMetadata>
PropertyHelper.handlePrimitiveAsDefaults
(Collection<PropertyMetadata> metadata) Sets all primitives of the given list toisDefaultValue()
beingtrue
in casegetCollectionType()
beingCollectionType.NO_ITERABLE
.static final Set<PropertyMetadata>
PropertyHelper.handlePropertyConfigAnnotations
(Class<?> annotated) Checks the given type for the annotationPropertyConfig
andPropertyConfigs
and puts all found in the immutable set to be returnedstatic final Set<PropertyMetadata>
PropertyHelper.handlePropertyConfigAnnotations
(Collection<PropertyConfig> config) Checks the given type for the annotationPropertyConfig
andPropertyConfigs
and puts all found in the immutable set to be returnedstatic <T> List<PropertyMetadata>
ReflectionHelper.handlePropertyMetadata
(PropertyReflectionConfig propertyReflectionConfig, List<PropertyConfig> propertyConfig, Class<T> targetClass) One stop method for the deriving of configured metadatastatic <T> List<PropertyMetadata>
ReflectionHelper.handlePropertyMetadata
(Class<?> annotated, Class<T> targetClass) One stop method for the deriving of configured metadatastatic Map<String,
PropertyMetadata> PropertyHelper.handleWhiteAndBlacklist
(String[] of, String[] exclude, Collection<PropertyMetadata> givenMetadata) Handles the white- / black-list for the given parameterCollection
static List<PropertyMetadata>
PropertyHelper.handleWhiteAndBlacklistAsList
(String[] of, String[] exclude, List<PropertyMetadata> givenMetadata) Handles the white- / black-list for the given parameter map.static Map<String,
PropertyMetadata> AnnotationHelper.modifyPropertyMetadata
(Map<String, PropertyMetadata> map, String[] defaultValued, String[] readOnly, String[] required, String[] transientProperties, String[] writeOnly, String[] unorderedCollection) Checks the individual contracts and changes / modifies the correspondingPropertyMetadata
accordinglystatic Map<String,
PropertyMetadata> AnnotationHelper.modifyPropertyMetadata
(Map<String, PropertyMetadata> map, List<String> defaultValued, List<String> readOnly, List<String> required, List<String> transientProperties, List<String> writeOnly, List<String> unorderedCollection) Checks the individual contracts and changes / modifies the correspondingPropertyMetadata
accordinglystatic SortedSet<PropertyMetadata>
ReflectionHelper.scanBeanTypeForProperties
(Class<?> beanType, PropertyReflectionConfig config) UsesMoreReflection
to scan the concrete bean and describe the properties with fittingPropertyMetadata
.static final Map<String,
PropertyMetadata> PropertyHelper.toMapView
(Collection<PropertyMetadata> metadata) Simple helper, that create a map with with name as key for the givenPropertyMetadata
Method parameters in de.cuioss.test.valueobjects.util with type arguments of type PropertyMetadataModifier and TypeMethodDescriptionstatic void
PropertyHelper.assertPropertyExists
(String name, Map<String, PropertyMetadata> map) Simple assertions indicating that the property identified by the name exists in the given mapstatic void
PropertyHelper.assertPropertyExists
(String name, SortedSet<PropertyMetadata> givenMetadata) Simple assertions indicating that the property identified by the name exists in the given Setstatic List<PropertyMetadata>
AnnotationHelper.constructorConfigToPropertyMetadata
(VerifyConstructor config, Collection<PropertyMetadata> givenMetadata) Creates aList
ofPropertyMetadata
according to the given parameterstatic List<PropertyMetadata>
AnnotationHelper.factoryConfigToPropertyMetadata
(VerifyFactoryMethod config, Collection<PropertyMetadata> givenMetadata) Creates aList
ofPropertyMetadata
according to the given parameterstatic List<PropertyMetadata>
BuilderPropertyHelper.handleBuilderPropertyConfigAnnotations
(Class<?> annotated, List<PropertyMetadata> givenMetadata) Checks the given type for the annotationPropertyBuilderConfig
andPropertyBuilderConfigs
and puts all found in the immutableList
to be returnedstatic List<PropertyMetadata>
AnnotationHelper.handleMetadataForBuilderTest
(Class<?> annotated, List<PropertyMetadata> givenMetadata) static List<PropertyMetadata>
AnnotationHelper.handleMetadataForMapperTest
(VerifyMapperConfiguration verifyMapper, List<PropertyMetadata> givenMetadata) static List<PropertyMetadata>
AnnotationHelper.handleMetadataForPropertyTest
(Class<?> annotated, List<PropertyMetadata> givenMetadata) static SortedSet<PropertyMetadata>
ReflectionHelper.handlePostProcess
(Class<?> annotated, SortedSet<PropertyMetadata> metatdata) Filters the given properties according to the annotated element given.static SortedSet<PropertyMetadata>
ReflectionHelper.handlePostProcessConfig
(PropertyReflectionConfig config, SortedSet<PropertyMetadata> metatdata) Filters the given properties according to the annotated element given.static final Collection<PropertyMetadata>
PropertyHelper.handlePrimitiveAsDefaults
(Collection<PropertyMetadata> metadata) Sets all primitives of the given list toisDefaultValue()
beingtrue
in casegetCollectionType()
beingCollectionType.NO_ITERABLE
.static Map<String,
PropertyMetadata> PropertyHelper.handleWhiteAndBlacklist
(String[] of, String[] exclude, Collection<PropertyMetadata> givenMetadata) Handles the white- / black-list for the given parameterCollection
static List<PropertyMetadata>
PropertyHelper.handleWhiteAndBlacklistAsList
(String[] of, String[] exclude, List<PropertyMetadata> givenMetadata) Handles the white- / black-list for the given parameter map.static void
PropertyHelper.logMessageForPropertyMetadata
(Collection<? extends PropertyMetadata> handled) Simple helper method that creates a sensible information message for logging purpose.static void
PropertyHelper.logMessageForTargetPropertyMetadata
(Collection<? extends PropertyMetadata> handled) Simple helper method that creates a sensible information message for logging purpose.static Map<String,
PropertyMetadata> AnnotationHelper.modifyPropertyMetadata
(Map<String, PropertyMetadata> map, String[] defaultValued, String[] readOnly, String[] required, String[] transientProperties, String[] writeOnly, String[] unorderedCollection) Checks the individual contracts and changes / modifies the correspondingPropertyMetadata
accordinglystatic Map<String,
PropertyMetadata> AnnotationHelper.modifyPropertyMetadata
(Map<String, PropertyMetadata> map, List<String> defaultValued, List<String> readOnly, List<String> required, List<String> transientProperties, List<String> writeOnly, List<String> unorderedCollection) Checks the individual contracts and changes / modifies the correspondingPropertyMetadata
accordinglystatic final Map<String,
PropertyMetadata> PropertyHelper.toMapView
(Collection<PropertyMetadata> metadata) Simple helper, that create a map with with name as key for the givenPropertyMetadata