You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
containsString is a Matcher for Strings. You're using it to match a List.
I assume you want to verify that the list contains the String "a" but not "b" in that case you would write:
The second and third
assertThat
statements don't compile, but I'm not sure why. I'm using Hamcrest 2.2 with JDK 17 and JUnit5.This is the error I get.
Error on the second
assertThat()
:Error on the third
assertThat()
:The text was updated successfully, but these errors were encountered: