- then: 'the delta report contains expected "update" action'
- assert result[index].action.equals('update')
- and: 'the delta report contains expected xpath'
- assert result[index].xpath == expectedXpath
- and: 'the delta report contains expected source and target data'
- assert result[index].sourceData == expectedSourceData
- assert result[index].targetData == expectedTargetData
- where: 'the following data was used'
- scenario | index || expectedXpath | expectedSourceData | expectedTargetData
- 'parent data node' | 0 || '/parent' | ['parent-leaf': 'parent-payload'] | ['parent-leaf': 'parent-payload-updated']
- 'child data node' | 1 || '/parent/child' | ['child-leaf': 'child-payload'] | ['child-leaf': 'child-payload-updated']
+ then: 'the delta report contains expected details for parent node'
+ assert result[0].action.equals('update')
+ assert result[0].xpath == '/parent'
+ assert result[0].sourceData == ['parent-leaf': 'parent-payload']
+ assert result[0].targetData == ['parent-leaf': 'parent-payload-updated']
+ and: 'the delta report contains expected details for child node'
+ assert result[1].action.equals('update')
+ assert result[1].xpath == '/parent/child'
+ assert result[1].sourceData == ['child-leaf': 'child-payload']
+ assert result[1].targetData == ['child-leaf': 'child-payload-updated']