StringSource
Annotation to indicate that the annotated String parameter should be populated with a random value from the provided values array.
Samples
/**
* This will generate 4 tests with the values "one", "two", "three", "four"
*/
@GeneratedParametersTest
fun testStringSource(@StringSource(values = ["one", "two", "three", "four"]) value: Int) {
assertThat(value).isIn("one", "two", "three", "four")
}Content copied to clipboard