Annotation Interface PropertyGeneratorHint
@Retention(RUNTIME)
@Target(TYPE)
@Repeatable(PropertyGeneratorHints.class)
public @interface PropertyGeneratorHint
For some cases it is simpler to give a hint for a certain type instead of
declaring
PropertyGenerator
. e.g. Your class to be tested needs
instances of certain Interface that need to be Serializable
but this
is not declared at interface level. Therefore this hint may suffice in case
you provide a concrete implementation that can be instantiated. The
test-framework will than always use a TypedGenerator
for all the
tests.- Author:
- Oliver Wolff
-
Required Element Summary
Required Elements
-
Element Details
-
declaredType
- Returns:
- The type of object that are declared at field and or method / constructor level
-
implementationType
- Returns:
- the actual implementation type to be used for the
declaredType()
. It should provide a publicly accessible constructor
-