Skip to content

MapForgery

Xavier Gouchet edited this page Sep 3, 2020 · 1 revision

@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.