SyntaxFix
Write A Post
Hire A Developer
Questions
It's too late, but just to update I got it done with below syntax
import org.hamcrest.core.StringContains; import org.junit.Assert; Assert.assertThat("this contains test", StringContains.containsString("test"));