コード例 #1
0
  // @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());
  }
コード例 #2
0
 @Test
 public void getSmallestDiffBetweenForAndAgainst() {
   Team team = premiershipService.getSmallestDiffBetweenForAndAgainst();
   Assert.assertEquals("", "Aston_Villa", team.getTeamName());
 }