2013å¹´5æ23æ¥æ¨ææ¥ JUnit4 Matcherã®ä½¿ãæ¹(åç·¨) æ ªå¼ä¼ç¤¾ã¸ã§ãã·ã¹ãæè¡éçºäºæ¥é¨ã®é è¤ã太å¿éã§ãã ãã³ãã«ãã¼ã ã¯Tacyã§ãã ç¾å¨ãããã¹ãèªååã·ãªã¼ãºããé£è¼ä¸ã ååã«å¼ãç¶ãJUnit4ã®ä½¿ãæ¹ãã説æãã¾ãã ä»åã®ãã¼ãã¯ãMatcherãã§ãã ãMatcherãã¯JUnit4ã®æ³¨ç®æ©è½ã¨ããããããããã¼ã¹é¨åã¨è¨ã£ã¦è¯ãã§ãããã ååã®è¨äºã§å ãã«ç»å ´ãã¦ãã¾ããã assertThat(sample001.getConnectString(str1, str2), is("æ ªå¼ä¼ç¤¾ã¸ã§ãã·ã¹æè¡éçºäºæ¥é¨")); ã®ãisãã®é¨åããããMatcherã§ãã ã¤ã¾ãã¨ãããassertThatã®ä¸è´æ¡ä»¶ãå®ç¾©ããæ©è½ã§ããã ã¾ãã以ä¸ã®æç« ãè¨è¿°ããä¸ã®ç¨èªã¨ãã¦ä»¥ä¸ãå®ç¾©ãã¾ãã å®è¡çµæï¼actual äº
{{#tags}}- {{label}}
{{/tags}}