JUnitã§èªä½Matcherãä½ã£ã¦ã¿ã JUnitã§ã¯ãListãHashèªä½ã®ãã§ãã¯ï¼xxxãå«ãã§ããããªã¹ãã空ï¼ã¯ã§ãããã "è¿ãå¤xxxxã¯æ¬¡ã®é åã®è¦ç´ ã®ãããã"ã¨ãããã§ãã¯ãã§ããªãã®ã§ãèªä½Matcherãä½ã£ã¦ã¿ããã¨ã«ããã æ¡å¤ãã£ããã§ãããã©ãä¾å¤ãã§ãã¯çãã®ã§æè£å£ï¼not ããµã«ãªï¼ãæãã¦ãããã°ãããããã§ãã ç°å¢ è¨èªï¼Java 7 ãã¬ã¼ã ã¯ã¼ã¯ï¼JUnit 4.10 ã©ããã4.11ãã4.12ã«ããã¦hamcrestå¨ãã§ããããå¤æ´ããã£ããããã4.12ã§åããã«ã¯è¿½å ã§ã©ã¤ãã©ãªãå¿ è¦ã«ãªãã¾ãã org.hamcrest.hamcrest-core 1.3 è¦ä»¶ ã¡ã½ãããå¼ã³åºããè¿ãå¤ãenumã§ãå®ç¾©ããã¦ããenumã®ãã¡æ°ç¨®é¡ã®ããããã®å¯è½æ§ãããã æèã«æ²¿ã£ãassertThatã使ç¨ããã æ¢ã«ç¨æããã¦ã
{{#tags}}- {{label}}
{{/tags}}