Forum Discussion
Wamboo
5 years agoCommunity Hero
Hi,
to achieve the simplest assertion You can try to get value from the list and assert it:
def list = [5, 6, 7, 8]
assert list.get(2) == 6 : "test failed"
Read this topic's:
https://stackoverflow.com/questions/12645142/groovy-assert-how-to-display-the-value
http://grails.asia/groovy-assert-examples
Hope this will help You.
Related Content
- 6 years ago
- 10 years ago
Recent Discussions
- 15 years ago