### Question:
EventListSubscriber extends BaseAPISubscriber<List<Event>, List<Object>> { public void setRenderMode(int renderMode) { mRenderMode = renderMode; } @Inject  EventListSubscriber(Context context); void setRenderMode(int renderMode); @Override void parseData(); static final int MODE_WEEK; }### Answer:
@Test public void testParseWeek() { mSubscriber.setRenderMode(EventListSubscriber.MODE_WEEK); List<Object> data = DatafeedTestDriver.getParsedData(mSubscriber, mEvents); EventHelper.renderEventListForWeek(mContext, mEvents, mExpected); assertListsEqual(data); }
@Test public void testParseTeam() { mSubscriber.setRenderMode(EventListSubscriber.MODE_TEAM); List<Object> data = DatafeedTestDriver.getParsedData(mSubscriber, mEvents); EventHelper.renderEventListForWeek(mContext, mEvents, mExpected); assertListsEqual(data); }
@Test public void testParseDistrict() { mSubscriber.setRenderMode(EventListSubscriber.MODE_DISTRICT); List<Object> data = DatafeedTestDriver.getParsedData(mSubscriber, mEvents); EventHelper.renderEventListForDistrict(mContext, mEvents, mExpected); assertListsEqual(data); }