public class HamcrestTest { List<String> list = Arrays.asList("hoge", "fuga", "piyo"); @Test public void test() { assertThat(true, is(true)); assertThat("hoge", is("hoge")); assertThat(list, is(not(empty()))); assertThat(list, is(contains("hoge", "fuga", "piyo"))); } } è¦ãç®ã¯Hamcrestã¨ãã¾ãå¤ãããªãããã«æãã¾ããã大ããªã¡ãªããã¯Fluent APIã®ããããã§ãã¯å¯¾è±¡ã®åæ å ±ããIDEè£å®ã§ä½¿ç¨å¯è½ãªã¡ã½ããä¸è¦§ãé¸æã§ãããã¨ã§ãã ãã®ãããHamcrestã®ããã«äºåã«APIãææ¡ãã¦ããªãã¦ããåå®å ¨

{{#tags}}- {{label}}
{{/tags}}