use of com.thebluealliance.androidclient.models.Event in project the-blue-alliance-android by the-blue-alliance.
the class EventHelperTest method mockRegularEvent.
private static Event mockRegularEvent(EventType type, int year, int week) {
Event event = mockEventType(type);
when(event.getYear()).thenReturn(year);
when(event.getWeek()).thenReturn(week);
return event;
}
use of com.thebluealliance.androidclient.models.Event in project the-blue-alliance-android by the-blue-alliance.
the class EventHelperTest method mockEventType.
private static Event mockEventType(EventType type) {
Event event = mock(Event.class);
when(event.getEventTypeEnum()).thenReturn(type);
return event;
}
use of com.thebluealliance.androidclient.models.Event in project the-blue-alliance-android by the-blue-alliance.
the class TeamEventsFragmentTest method setUp.
@Before
public void setUp() {
mFragment = TeamEventsFragment.newInstance("frc1124", 2015);
Event event = ModelMaker.getModel(Event.class, "2015cthar");
EventRenderer renderer = new EventRenderer(null);
mEvents = new ArrayList<>();
mEvents.add(renderer.renderFromModel(event, false));
}
use of com.thebluealliance.androidclient.models.Event in project the-blue-alliance-android by the-blue-alliance.
the class EventListFragmentTest method setUp.
@Before
public void setUp() {
ArrayList<String> eventKeys = new ArrayList<>();
eventKeys.add("2015cthar");
mFragment = EventListFragment.newInstance(2015, eventKeys, true);
Event event = ModelMaker.getModel(Event.class, "2015cthar");
EventRenderer renderer = new EventRenderer(null);
mEvents = new ArrayList<>();
mEvents.add(renderer.renderFromModel(event, false));
}
use of com.thebluealliance.androidclient.models.Event in project the-blue-alliance-android by the-blue-alliance.
the class DistrictEventsFragmentTest method setUp.
@Before
public void setUp() {
mFragment = DistrictEventsFragment.newInstance("2015ne");
Event event = ModelMaker.getModel(Event.class, "2015cthar");
EventRenderer renderer = new EventRenderer(null);
mEvents = new ArrayList<>();
mEvents.add(renderer.renderFromModel(event, false));
}
Aggregations