Is there a nicer way to write in jUnit
String x = \"foo bar\";
Assert.assertTrue(x.contains(\"foo\"));
I've tried out many answers on this page, none really worked:
So instead of writing readable code, I decided to use the simple and workable approach mentioned in the question instead.
Hopefully another solution will come up.