Groovy/Grailsã®æ¯ãèãé§åéçº (Behavior-driven Development, BDD) ãã¬ã¼ã ã¯ã¼ã¯ Spockã®ä½¿ãæ¹ (é¦è¨³) ã¢ãã¯ãä½ã ã¢ãã¯ã¯, ã¤ã³ã¿ãã§ã¼ã¹, finalã§ãªãJavaã¯ã©ã¹, finalã§ãªãGroovyã¯ã©ã¹ (ããã¯å®é¨æ®µé) ã«å¯¾ãã¦ä½ããã¨ãã§ãã¾ã. ä»ã®ã¨ãã, ãã¹ã¦ã®ã¢ãã¯ã¯ãã¦ã¼ãã¼ã(lenient) ã§ã. ã¤ã¾ã, ããããã¡ã½ããå¼ã³åºããã¤ã³ã¿ã©ã¯ã·ã§ã³ã¨å¯¾å¿ããªãå ´å, ãã®ã¡ã½ããã®æ»ãå¤ã®åã®ããã©ã«ãå¤ãè¿ãããã«ãªã£ã¦ãã¾ã. def subscriber = Mock(Subscriber) // "åçãª" ã¹ã¿ã¤ã« (ã¢ãã¯ã®ååãå¤æ°åããæ¨æ¸¬) Subscriber subscriber = Mock() // "éçãª" ã¹ã¿ã¤ã« (ã¢ãã¯ã®ååã¨åãå¤æ°åã¨ãã®åããæ¨æ¸¬)
{{#tags}}- {{label}}
{{/tags}}