use of com.thebluealliance.androidclient.renderers.MatchRenderer.RenderArgs in project the-blue-alliance-android by the-blue-alliance.
the class MatchRendererTest method testRenderFromModel.
@Test
public void testRenderFromModel() {
@RenderType int[] types = { RENDER_DEFAULT, RENDER_NOTIFICATION, RENDER_MATCH_INFO };
for (int i = 0; i < types.length; i++) {
MatchListElement element = mRenderer.renderFromModel(mMatch, types[i]);
RenderArgs expectedArgs = MatchRenderer.argsFromMode(types[i]);
assertMatch(element, mMatch, expectedArgs);
}
}
use of com.thebluealliance.androidclient.renderers.MatchRenderer.RenderArgs in project the-blue-alliance-android by the-blue-alliance.
the class MatchRendererTest method testRenderFromKey.
@Test
public void testRenderFromKey() {
when(mDatafeed.fetchMatch(mMatchKey)).thenReturn(Observable.just(mMatch));
MatchListElement element = mRenderer.renderFromKey(mMatchKey, ModelType.MATCH, null);
RenderArgs expectedArgs = MatchRenderer.argsFromMode(RENDER_DEFAULT);
assertMatch(element, mMatch, expectedArgs);
}
Aggregations