Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test each method:
- setPlayers
- hasNextMatch
- nextMatch
- setMatchWinner
- getPosition
- @Test
- public void testIsThereAMatch() {
- assertEquals("There should be a match ready to happen", true, myBracket.hasNextMatch());
- }
- @Test
- public void testLeonAliMatch() {
- assertEquals("The 1st player should be Leon", "Leon", myBracket.nextMatch().getPlayer1());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement