(Team team)
| 56 | } |
| 57 | |
| 58 | private Team toggle(Team team) { |
| 59 | if (team.getName().equals(this.homeTeam.getName())) { |
| 60 | return this.awayTeam; |
| 61 | } else if (team.getName().equals(this.awayTeam.getName())) { |
| 62 | return this.homeTeam; |
| 63 | } else { |
| 64 | throw new RuntimeException("Unexpected error: team naming mismatch"); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | public void playHalfTime() { |
| 69 |
no test coverage detected