Forum Discussion
HimanshuTayal
7 years agoCommunity Hero
Hi chathurad,
Instead of doing [] == [], match the size if you don't want to assert on the items inside your List.
try using
assert (actualList.size() == expectedList.size()) : "Size not equal"
Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)
Regards,
Himanshu Tayal
Related Content
- 9 years ago
Recent Discussions
- 2 hours ago
- 17 days ago