@Before public void setUp() { MockitoAnnotations.initMocks(this); when(mResources.getString(R.string.media_images_header)).thenReturn("Chief Delphi Photos"); when(mResources.getString(R.string.media_videos_header)).thenReturn("YouTube Videos"); mSubscriber = new MediaListSubscriber(mResources); mMedias = ModelMaker.getModelList(Media.class, "media_frc254_2014"); }
@Before public void setUp() { mDb = mock(Database.class); mTeamListWriter = mock(TeamListWriter.class); mEventTeamListWriter = mock(EventTeamListWriter.class); mTable = DatabaseMocker.mockEventTeamsTable(mDb); mTeamsTable = DatabaseMocker.mockTeamsTable(mDb); List<Team> teams = ModelMaker.getModelList(Team.class, "2015necmp_teams"); mData = new TeamAndEventTeamCombiner("2015necmp").call(teams); mWriter = new EventTeamAndTeamListWriter(mDb, mEventTeamListWriter, mTeamListWriter); }