// @Test public void getSmallestDiffBetweenForAndAgainstTest() { // Given // Mockito.given(reader.readFileData("test.dtd")).willReturn(getPremiershipTeamsForTest()); // Mockito.doReturn(getPremiershipTeamsForTest()).when(reader.readFileData("test.dtd")); // Mockito.when(reader.readFileData("test.dtd")).thenReturn(getPremiershipTeamsForTest()); // Mockito.when(reader.readFileData("test.dtd")).thenReturn(getPremiershipTeamsForTest()); // When Team team = premiershipService.getSmallestDiffBetweenForAndAgainst(); // Then assertEquals("Arsenal", team.getTeamName()); }
@Test public void getSmallestDiffBetweenForAndAgainst() { Team team = premiershipService.getSmallestDiffBetweenForAndAgainst(); Assert.assertEquals("", "Aston_Villa", team.getTeamName()); }