assertThat 㨠hamcrest ã®çµã¿åããã£ã¦ä¾¿å©ã§ãããã¼ã assertThat 㨠hamcrest ã®çµã¿åããã«ã¤ãã¦ã¯ã JDaveã®å¯ãéã«hamcrestã試ãã¦ã¿ãã - Fight the Future ã¨ãã hamcrestã®Matcherã¡ã¢ - é½å ãã¤ã¹ã± IT-PRESS ã¨ãè¦ã¦ãããã°å¤§ä½åããã¨æãã åé¡ã¯ãassertThat ã¡ã½ããã ãã®ã¡ã½ãããã·ã°ããã£ã public static <T> void assertThat(T actual, Matcher<T> matcher); ãªæãã«ãªã£ã¦ããã ãªã®ã§ã class Hoge { ... } class ExHoge extends Hoge { ... } Hoge hoge() { return new ExHoge(); } ãªãã¦ã¯ã©ã¹ã¨ã¡ã½ããããã£ãå ´
{{#tags}}- {{label}}
{{/tags}}