2012-12-01ãã1ã¶æéã®è¨äºä¸è¦§
æ¬ã¨ã³ããªã¼ã¯ãG* Advent Calendar 2012ã®24æ¥ç®ã®ã¨ã³ããªã¼ã§ããåæ¥ã¯ã@tetsurokitaharaããã®Groovyã«Processingãï¼ã§ãããä½ããã¿ã«æ¸ããããªã¨æ©ãã ã®ã§ãããæãã»ã©G*ãªãã¿ã¯æã£ã¦ããããJUnitãã¿ã¨ãªãã¾ãããå®ã¯ãæ¸ç±ãJUnitå®è·µâ¦
誤æ¤éå ±ãã®5ã§ãã ãã®1,ãã®2,ãã®3, ãã®4, æè©ããã®å ¬å¼ãµã¤ãã§ãï¼ãã£ã¦åæ ããã¾ãï¼ã P286 ã½ã¼ã¹ã³ã¼ãã®ã¨ã³ã³ã¼ãã£ã³ã°è¨å®ï¼æ¬æ6è¡ç®ï¼ èª¤ï¼ POMã®propertiesã»ã¯ã·ã§ã³ã«project.build.sourceEncofingã¿ã°ã追å ãã¦æå®ãã¾ã æ£ï¼ Pâ¦
ãé°æ§ã§JUnitå®è·µå ¥éã®å¢å·ã決ã¾ãã¾ããï¼ã¿ã¤ãã«ãªã©ã«ãJavaãã¨ãããã¼ã¯ã¼ããå«ã¾ãããä¸é¨ã®æ¸åºã§ã¯ä¸éãªæ±ããåãã¦ãã¾ããããããªãã«å£²ãã¦ããã¨ãããã¨ã§ãããããæãã¾ããå¢å·åã¯å¹´æ«ã«ããã£ã¦ããäºå®ã§ãããããæ¸åºãªã©ã§â¦
ããã¯ãTDD Advent Calendar jp:2012 ã®16æ¥ç®ã®ã¨ã³ããªã¼ã§ããåæ¥ã®ã¨ã³ããªã¼ã¯ã@pocketberserkerããã®ãSpecs2ã®Parameterized Testã®ã¯ãªããã§ããããåãã®æ¹ãå¤ããªã£ã¦ããã¨æãã¾ãããããã¹ãé§åéçºï¼ä»¥ä¸ãTDDï¼ãã¨ã¯ãã¹ãã³ã¼ããâ¦
誤æ¤éå ±ãã®4ã§ãã ãã®1,ãã®2,ãã®3, æè©ããã®å ¬å¼ãµã¤ãã§ãï¼ãã£ã¦åæ ããã¾ãï¼ã P239 ãªã¹ã13.7 15è¡ç® èª¤ï¼ return authService.login(authUser) ? "ã¦ã¼ã¶IDã¨ãã¹ã¯ã¼ããæ£ããå ¥åãã¦ãã ãã" : "ããããã" + authUser.userId + "ãâ¦