2010-10-01ãã1ã¶æéã®è¨äºä¸è¦§
(éå®å ¬éãããã®ã§ãæ©ãã«) åãã§ããããªãã ãæããããã¾ãã
ãã¿å http://www.infoq.com/jp/news/2010/10/lambda-update ã¿ããªå¤§å¥½ãã©ã ãå¼ãJDK8ã§ãã£ã¨å°å ¥äºå®ãªããã§ããããã¿å ã«ããã¨ãã¾ãä»æ§ãå¤ãã£ãããã§ãã å ã ã¯ã #(int a, int b){ a+b } ã¿ãããªæãã ã£ãã®ããä»ã®ãã©ããã 㨠#{ a,b â¦
æ¨æ¥ã¯ä¼ç¤¾ã®é£²ã¿ä¼ã§ã³ã³ã¸è¡ãã¾ããã ãã«ããã³ã¢ ã¯ã©ã·ã³ 丸ã®å åºã¸ã£ã³ã«ï¼ãã©ã¸ã«æçä½æï¼ å代ç°åºä¸¸ã®å 1-5-1 æ°ä¸¸ã®å ãã«ãã£ã³ã° 6Fãã®ãåºãå«ãããã°ãè¦ã | (åçæä¾ï¼è·¯å°è£ã®ã«ãã·ã¼ã)ãã«ããã³ã¢ ã¯ã©ã·ã³ ãæ°ä¸¸ãã«ãããâ¦
æ¨æ¥ã大å¦æ代ã®å人ãçµå©ããã¨ããã®ã§ä¼ãã«è¡ãã¾ããã åæ å ±ã«ãã㨠æ¦é£ã¯ã¤ã®ãªã¹äºº å¹´é½¢ã¯äºåãå¹´ä¸(!!) ã¨ãã話ãèãã¦ããã®ã§ããä¼ãããã®ãé常ã«æ¥½ãã¿ã«ãã¦ããã®ã§ãã ã§ãå®éãä¼ããã¦ã¿ãã®ã§ããé常ã«ç©ãããªæ¹ã§ãããå¹´â¦
2010-10-19è¿½è¨ æ¢ã«ç¿»è¨³ã«çæããã¦ããæ¹ãããããã§ãã(1.8.1çããã¼ã¹) http://tech.cm55.com/wiki/mockito/Manual ãã¡ãããããã¦ãèªã¿ãã ããã è·å ´ã®ååã±ã³ã¿ãã¦æ°ããã¿ã¬ã³ãé ãã¾ãããã©ãããããã¨ããããã¾ãã æ¬æãããã Moâ¦
â»ãã¿ãã¬ãå«ãã§ãã¾ããããããã©ã¤ãªã³ãã³ã°ãã覧ã«ãªãæ¹ã¯èªã¾ãªãæ¹ãè¯ãã§ãã â»è¾å£ã®è©ä¾¡ããã¦ãã¾ãããã¡ã³ã®æ¹ã¯èªã¾ãªãæ¹ãè¯ãã§ãã å é±ã®åææ¥ãã©ã¤ãªã³ãã³ã°ã観ã«è¡ãã¾ããã å½æ¥ã¯åç éãã§ããªãæ²æ¨ãªæãã§ããããã©ãâ¦
ãã£ãEclipseã§ãã«ãã«ããå®è¡ãããããããªã¨ã©ã¼ãã ææ¸ã¿ã¤ã宣è¨ã«å«ã¾ããããã¾ãã¯ææ¸ã¿ã¤ã宣è¨ãæãã¦ãããã¼ã¯ã¢ãã宣è¨ã¯ãæ´å½¢å¼ã§ãªããã°ãªãã¾ããã ã ãã¼ã§ãã ã©ãããã³ã¬ãã¨ã©ã¼ã®åå ãããã ã§ã確ãã«http://www.puppâ¦
å人çã¡ã¢ãã¡ã½ããã«å¯¾ãã¦Javadocã®ãªã³ã¯ãè²¼ãã«ã¯ /** {@link String#charAt(int) */ ã¨ããã°ããããã³ã³ã¹ãã©ã¯ã¿ã«ãªã³ã¯ãè²¼ãã«ã¯ /** {@link String#String(char[]) */ ã¨ãã£ãæãã§ãã³ã³ã¹ãã©ã¯ã¿ãã¯ã©ã¹åã¨ååã®ã¡ã½ããã¨ã¿ãªãã¦â¦
以åã®æ¥è¨ã§EasyMockããç´¹ä»ããã®ã§ãããç¾å¨ã®ç¾å ´ã§ã¯Mockitoã使ã£ã¦ãã¾ããããã«ãã¦ãã¢ãã¯ãããï¼ã¢ãããï¼ã¢ãã¼ãï¼ã©ãèªããã ãã⦠ãã´ã¯æåãªã«ã¯ãã«ãã¢ãã¼ããã§ã¯ããããåã¯ãã³ããè¦æãªã®ã§ä½ã飲ã¾ãªããã©ã Mockitoã¯æ¯â¦