TNG / value-provider

Apache License 2.0
5 stars 3 forks source link

Provide methods for generating randomly populated collections #4

Open stefanhechtltng opened 3 years ago

stefanhechtltng commented 3 years ago

Implement methods for generating empty / non-empty lists and populate them randomly with a reasonable number of elements. Also allow duplicate elements.

Implement methods for generating empty / non-empty sets and populate them randomly with a reasonable number of elements.

Typical usage: valueprovider.listOf(FooTestData::foo) -> [foo_1, foo_2] valueprovider.listOf(FooTestData::foo) -> [] valueprovider.nonEmptyListOf(FooTestData::foo) -> [foo_1] valueprovider.setOf(FooTestData::foo) -> [foo_1]