xgouchet / Elmyr

A utility to make Kotlin/Java tests random yet reproducible
Other
82 stars 2 forks source link

[JUnit5] Inject list of forgeries #45

Closed xgouchet closed 4 years ago

xgouchet commented 4 years ago

In a Junit5 test, it would be nice to be able to write (assuming a Forgery of Foo is available) :

` class A { @Forgery lateinit var fakeList : List

@Test
fun test(@Forgery list : List<Foo>) {
    // …
}

} ` ``