Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Test each method:
  2. setPlayers
  3. hasNextMatch
  4. nextMatch
  5. setMatchWinner
  6. getPosition
  7.  
  8. @Test
  9. public void testIsThereAMatch() {
  10. assertEquals("There should be a match ready to happen", true, myBracket.hasNextMatch());
  11. }
  12.  
  13. @Test
  14. public void testLeonAliMatch() {
  15. assertEquals("The 1st player should be Leon", "Leon", myBracket.nextMatch().getPlayer1());
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement