import static org.junit.matchers.JUnitMatchers.both;
import static org.junit.matchers.JUnitMatchers.containsString;
今、以下のように foo と bar が含まれていることを確認します...
Assert.assertThat(text,
both(containsString("foo")).
and(containsString("bar")));
'foo'、'bar'、'baz' などの 3 つ以上の文字列が含まれていることをテストする最もクリーンな方法は何ですか?