I have a test case where i need to test multiple strings and they are initialised as String[]
myArray.each {
shouldFail(IllegalArgumentException) {
println "it = " + it
testObj.testMyString("$prefix $it", mockBuilder);
}
}
the print statement shows that "it" is null. What am I doing wrong?