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);
}
}
印刷说明显示,<代码>it”为无效。 我做了什么错误?