Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Unroll
- def "scenario with different parameters"() {
- given:
- def service = new MyService()
- when:
- def actualDataFile = service.doSomething(param1, param2, param3, param4, param5, number)
- then:
- readFileAsString(actualDataFile) == readFileAsString(expectedDataFileName)
- where:
- param1 | param2 | param3 | param4 | param5 | number | expectedDataFileName
- 'any' | 'aaa' | 'any' | 'any' | 'any' | 1 | 'expectedA.txt'
- 'any' | 'aay' | '0ny' | 'any' | 'any' | 2 | 'expectedB.txt'
- 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 3 | 'expectedC.txt'
- 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 4 | 'expectedD.txt'
- 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 5 | 'expectedE.txt'
- 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 6 | 'expectedF.txt'
- 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 7 | 'expectedG.txt'
- 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 8 | 'expectedH.txt'
- // etc
- }
Add Comment
Please, Sign In to add comment