æ´æ°å±¥æ´ 2011-06-24 ä¾åã³ã³ãã¼ãã³ããåç §ãã¦ãã³ã³ãã¼ãã³ããä¸æ¸ãã§ããªãã£ãã®ãä¿®æ£ 2012-02-24 å®è£ æ¹æ³ãå¤§å¹ ã«å¤æ´ãä»ã¾ã§ã®å®è£ ãè¬ã®ã¡ã¢ãªãªã¼ã¯ã¨ãããããã ã¢ããã¼ã·ã§ã³ S2Junitã§mockitoã使ãããã£ãã®ã§ãããã³ã¼ãçã«ã¯ãããªã®ãæ³å®ãã¦ããã @RunWith(Seasar2.class) public class HogeLogicTest { HogeLogic hogeLogic; // app.diconã§ã³ã³ãã¼ãã³ããç»é²ããã¦ã // HogeLogicã®å®è£ ãä¾åãã¦ããã³ã³ãã¼ãã³ããHogeLogicã®çææã«DIãããã // app.diconã§æå®ããã¦ãããããã¹ãã®éã¯ãããmockã§ç½®ãæãããã HogeDao hogeDao; // S2Junitãæä¾ãããã¹ãå¶å¾¡ç¨ã¤ã³ã¿ãã§ã¼ã¹ã Test
{{#tags}}- {{label}}
{{/tags}}