æè¡ãã¿ãããªãã¨ããã§çãä¸ãã¦ãã¾ã£ããæè¡ãã¿ããããæè¡ãã¿ã ãã¦ãJUnitã使ãéãhamcrestã©ã¤ãã©ãªã使ã£ã¦ãè±èªã¨ãã¦èªãããããªassertionãæ¸ãããªãã¦ã®ã¯æµè¡ã£ã¦ããæµè¡ã£ã¦ããªãã£ããï¼ JUnit4éå®ã ããã©ãassertionã®éãassertEqualsã¨ãè²ã assertionã®ã¡ã½ããã¯ãããã©ãå ¨ã¦assertThatã§æ¸ããã¨ãã§ããã¯ããassertThatã¡ã½ããã®ç¬¬ä¸å¼æ°ã«ãã¹ã対象ã第äºå¼æ°ã«hamcrestã®Matcherã¤ã³ã¿ã¼ãã§ã¤ã¹ã®å®è£ ãä¸ãã¾ãããªãã®ãã£ã¡ãã§ããã Jiemamyã§ã¯ããªãã¹ãassertThat以å¤ã®assertionã¡ã½ããã使ããªãããã«ãã¹ããæ¸ãã¦ãã¾ããï¼ããããããããä¸ã¤ãæ®ã£ã¦ãªããããï¼ ã¾ãã以ä¸ã®ããã«æ¸ãã¨ãè±èªã£ã½ãã®ãæ¸ãã¾ãããã¨ã assertThat(aaaa
{{#tags}}- {{label}}
{{/tags}}