public void display() { System.out.println("Latest score is:"); System.out.println( homeTeam + " (HOME) " + homeGoals + " - " + awayTeam + " (AWAY) " + awayGoals); System.out.println("Goals:"); for (Scorer scorer : scorers) scorer.display(); }
@Test public void getTeamTest() { assertEquals("intel", scorer.getTeam()); }
@Test public void getPositionTest() { assertEquals("defensa", scorer.getPosition()); }
@Test public void getNumberTest() { assertEquals("12", scorer.getNumber()); }
@Test public void getNameTest() { assertEquals("miguel", scorer.getName()); }