Example #1
0
 @Before
 public void setup() {
   playerList = Arrays.asList(PlayerToken.values());
   scoreUtilMock = mock(ScoreUtil.class);
   wysRuleMock = mock(WysRules.class);
   wysScoreRuleMock = mock(WysScoreRule.class);
   cards = createSortedDeck();
   jassRulesMock = mock(JassRules.class);
   match =
       new MatchImpl(
           playerList.get(0),
           scoreUtilMock,
           jassRulesMock,
           cards,
           new ScoreRules(),
           wysRuleMock,
           wysScoreRuleMock);
 }