次ã®è¨äºãèªãã§ãåãã¦ç¥ã£ãã®ã§ã¡ã¢ã Testing Custom Exceptions w/ JUnit's ExpectedException and @Rule http://www.ensor.cc/2012/09/testing-custom-exceptions-w-junits.html ãã®ãããªãã¹ã対象ã®ã³ã¼ããããã¨ãã¾ãã import java.util.ArrayList; import java.util.List; public class Deck { /** * æå®ãã人æ°ã®ãã¬ã¤ã¤ã¼ã«ãå±±æãåä¸ã«é ããåä¸ã«é ããªãå ´åããã¬ã¤ã¤ã¼éã®é å¸ææ°ã®å·®ç°ã¯1æ以å ã¨ããã */ public List<List<Card>> divideCards(int playerNum) { if (playerNum < 2) { throw new Il
{{#tags}}- {{label}}
{{/tags}}