MapForgery - xgouchet/Elmyr GitHub Wiki
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY]) annotation class MapForgery
Mark a field, property or method parameter as a map forgery.
Parameters
key - a AdvancedForgery describing how to forge the keys in the map. Leave default if your Map uses custom
objects with existing ForgeryFactory as keys.
value - a AdvancedForgery describing how to forge the values in the map. Leave default if your Map uses custom
objects with existing ForgeryFactory as values.
Constructors
<init>
MapForgery(key: AdvancedForgery= AdvancedForgery(), value:AdvancedForgery = AdvancedForgery())
Mark a field, property or method parameter as a map forgery.
Parameters
key - a AdvancedForgery describing how to forge the keys in the map. Leave default if your Map uses custom
objects with existing ForgeryFactory as keys.
value - a AdvancedForgery describing how to forge the values in the map. Leave default if your Map uses custom
objects with existing ForgeryFactory as values.
Properties
key
val key: AdvancedForgery
a AdvancedForgery describing how to forge the keys in the map. Leave default if your Map uses custom objects with existing ForgeryFactory as keys.
value
val value: AdvancedForgery
a AdvancedForgery describing how to forge the values in the map. Leave default if your Map uses custom objects with existing ForgeryFactory as values.