115116117118119120121122123
team2.add(player3); team2.add(player4); teams.add(team1); teams.add(team2); IRule rule = new JassRule(); Assert.assertTrue(rule.hasWinner(teams)); }
141142143144145146147148149150
team2.add(player3); team2.add(player4); teams.add(team1); teams.add(team2); IRule rule = new JassRule(); Assert.assertEquals(player2, rule.getWinner(teams).get(0)); Assert.assertEquals(player4, rule.getWinner(teams).get(1)); }
149150151152153154155156157158159160
Assert.assertEquals(player4, rule.getWinner(teams).get(1)); } @Test public void testSortCards(){ IRule rule = new JassRule(); Hand hand = rule.getHand(); for(Card card : hand.getCards()){ System.out.println(card.getRank()); } }