Forum Discussion
Radford
7 years agoSuper Contributor
I think it is because you variable "ActualschoolList" is an empty Groovy List object, but your variable "ExpectedchoolList" is the literal string "[]" these are two different things, thus the assertion fails. If you are expecting an emty list, try defining "ExpectedchoolList" as follows:
def ExpectedchoolList = []
See the following page for more info on working with lists:
http://docs.groovy-lang.org/next/html/documentation/working-with-collections.html#Collections-Lists
Related Content
- 9 years ago
Recent Discussions
- 2 hours ago
- 17 days ago