...
Code Block |
---|
@Unroll("#featureName: '#input'") def "trimToNull"() { expect: StringUtil.trimToNull(input) == expected where: input | expected "test string" | "test string" "test string " | "test string" " test string" | "test string" " test string " | "test string" "test string" | "test string" "" | null " " | null "\n\r\ttest string\r\n\t" | "test string" } |
Running and
...
Reviewing the Unit Test
Running via IDE
The Spock framework is an extension of JUnit. During development it is normally executed through your IDE just like any other test. Your IDE will let you choose which test(s) you want to run.
...