dmcg
10/31/2019, 6:16 PMMoving Between Lists
Moving around items
Given an empty destination, And a populated source, When source moveInto destination, Then…, And…, When moving back, Then…, And…
but when there is a failure you get a report like (for Hamkrest integration)
dev.minutest.experimental.ScenarioStepFailedException:
Error in Moving around items
✓ Given an empty destination
✓ And a populated source
✓ When source moveInto destination
X Then destination contains all ["apple", "kumquat"] and has size that is equal to 2
expected: a value that contains all ["apple", "kumquat"] and has size that is equal to 2
but was: ["apple", "banana"]
- And source is empty
- When moving back
- Then result is equal to true
- And fixture has source that contains all ["apple", "banana"] and has size that is equal to 2 and has destination that is empty