@Test public void clubsStandings() { when(mockPersistenceStore.query(AutoValueClasses.CLUB)).thenReturn( Arrays.asList(gremioWithWin, internacionalWithLoss, flamengoWithWin, fluminenseWithLoss)); LeagueDetails leagueDetails = new LeagueDetails(mockPersistenceStore, clubDataStore, roundGenerator, matchResultGenerator); List<? extends Club> standings = leagueDetails.clubsStandings(); assertThat(standings).isEqualTo(Arrays.asList( gremioWithWin, flamengoWithWin, fluminenseWithLoss, internacionalWithLoss)); }
List<? extends Club> clubsStandings() { return clubsStandings(clubs()); }
LeagueDetails { List<? extends Club> clubsStandings() { return clubsStandings(clubs()); } }
LeagueDetails { List<? extends Club> clubsStandings() { return clubsStandings(clubs()); } LeagueDetails(ElifutDataStore persistenceService, ClubDataStore clubDataStore,
      LeagueRoundGenerator leagueRoundGenerator, MatchResultGenerator generator); }
LeagueDetails { List<? extends Club> clubsStandings() { return clubsStandings(clubs()); } LeagueDetails(ElifutDataStore persistenceService, ClubDataStore clubDataStore,
      LeagueRoundGenerator leagueRoundGenerator, MatchResultGenerator generator); void initialize(List<? extends Club> allClubs); LeagueRound nextRound(); boolean haveRoundsLeft(); int clubPosition(Club club); LeagueRound executeRound(LeagueRound round); Observable<? extends List<? extends Club>> clubsObservable(); Observable<? extends List<? extends LeagueRound>> roundsObservable(); List<? extends Club> clubs(); List<? extends LeagueRound> rounds(); }
LeagueDetails { List<? extends Club> clubsStandings() { return clubsStandings(clubs()); } LeagueDetails(ElifutDataStore persistenceService, ClubDataStore clubDataStore,
      LeagueRoundGenerator leagueRoundGenerator, MatchResultGenerator generator); void initialize(List<? extends Club> allClubs); LeagueRound nextRound(); boolean haveRoundsLeft(); int clubPosition(Club club); LeagueRound executeRound(LeagueRound round); Observable<? extends List<? extends Club>> clubsObservable(); Observable<? extends List<? extends LeagueRound>> roundsObservable(); List<? extends Club> clubs(); List<? extends LeagueRound> rounds();  }