In Scala, I would like to create a TestNG DataProvider that converts all the elements of an enumeration into an Array of Arrays where each element in the outer array is an array containing one of the values of the enumeration.
This is my first attempt, but it returns a Set of Arrays.
@DataProvider(name = "profileIdProvider")
def provideProfiles() = {
for (profile <- ProfileId.values) yield Array(profile)
}
What I need it to return is something like this:
Array(Array(value1), Array(value2))