-
-
Notifications
You must be signed in to change notification settings - Fork 3
AdvancedForgery
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY]) annotation class AdvancedForgery
Mark a field, property or method parameter as an advanced forgery.
Advanced allow you to provide a list of ways the forgery can be created. Only one of each parameter can be provided.
string
- describes all the way a String can be forged
int
- describes all the way a Int can be forged
long
- describes all the way a Long can be forged
float
- describes all the way a Float can be forged
double
- describes all the way a Double can be forged
map
- describes all the way a Map can be forged
pair
- describes all the way a Pair can be forged
AdvancedForgery(string:
Array
<
StringForgery
> = emptyArray(), int:
Array
<
IntForgery
> = emptyArray(), long:
Array
<
LongForgery
> = emptyArray(), float:
Array
<
FloatForgery
> = emptyArray(), double:
Array
<
DoubleForgery
> = emptyArray(), map:
Array
<
MapForgery
> = emptyArray(), pair:
Array
<
PairForgery
> = emptyArray())
Mark a field, property or method parameter as an advanced forgery.
Advanced allow you to provide a list of ways the forgery can be created. Only one of each parameter can be provided.
string
- describes all the way a String can be forged
int
- describes all the way a Int can be forged
long
- describes all the way a Long can be forged
float
- describes all the way a Float can be forged
double
- describes all the way a Double can be forged
map
- describes all the way a Map can be forged
pair
- describes all the way a Pair can be forged
val double:
Array
<
DoubleForgery
>
describes all the way a Double can be forged
val float:
Array
<
FloatForgery
>
describes all the way a Float can be forged
val int:
Array
<
IntForgery
>
describes all the way a Int can be forged
val long:
Array
<
LongForgery
>
describes all the way a Long can be forged
val map:
Array
<
MapForgery
>
describes all the way a Map can be forged
val pair:
Array
<
PairForgery
>
describes all the way a Pair can be forged
val string:
Array
<
StringForgery
>
describes all the way a String can be forged
Xavier F. Gouchet – @xgouchet
Distributed under the MIT license. See LICENSE.md for more information.
https://github.com/xgouchet/Elymr
- Home
- Getting Started
- Core Module
- Integrations
- Reference (core)
- Reference (junit4)
- Reference (junit5)
- Reference (spek)