@Test public void testRenderFromModel() { DistrictTeamListElement element = mRenderer.renderFromModel(mBreakdown, null); assertNotNull(element); assertEquals(element.districtKey, mBreakdown.getDistrictKey()); assertEquals(element.teamKey, mBreakdown.getTeamKey()); assertEquals(element.teamName, mBreakdown.getTeamName()); assertEquals(element.teamRank, mBreakdown.getRank().intValue()); assertEquals(element.totalPoints, mBreakdown.getTotal().intValue()); }
@Override public @Nullable DistrictTeamListElement renderFromModel( DistrictPointBreakdown breakdown, Void aVoid) { return new DistrictTeamListElement( breakdown.getTeamKey(), breakdown.getDistrictKey(), breakdown.getTeamName(), breakdown.getRank(), breakdown.getTotal()); }
DistrictPointBreakdownRenderer implements ModelRenderer<DistrictPointBreakdown, Void> { @Override public @Nullable DistrictTeamListElement renderFromModel( DistrictPointBreakdown breakdown, Void aVoid) { return new DistrictTeamListElement( breakdown.getTeamKey(), breakdown.getDistrictKey(), breakdown.getTeamName(), breakdown.getRank(), breakdown.getTotal()); } }
DistrictPointBreakdownRenderer implements ModelRenderer<DistrictPointBreakdown, Void> { @Override public @Nullable DistrictTeamListElement renderFromModel( DistrictPointBreakdown breakdown, Void aVoid) { return new DistrictTeamListElement( breakdown.getTeamKey(), breakdown.getDistrictKey(), breakdown.getTeamName(), breakdown.getRank(), breakdown.getTotal()); } @Inject  DistrictPointBreakdownRenderer(); }
DistrictPointBreakdownRenderer implements ModelRenderer<DistrictPointBreakdown, Void> { @Override public @Nullable DistrictTeamListElement renderFromModel( DistrictPointBreakdown breakdown, Void aVoid) { return new DistrictTeamListElement( breakdown.getTeamKey(), breakdown.getDistrictKey(), breakdown.getTeamName(), breakdown.getRank(), breakdown.getTotal()); } @Inject  DistrictPointBreakdownRenderer(); @Override @Nullable ListElement renderFromKey(String key, ModelType type, Void args); @Override @Nullable DistrictTeamListElement renderFromModel(
      DistrictPointBreakdown breakdown,
      Void aVoid); }
DistrictPointBreakdownRenderer implements ModelRenderer<DistrictPointBreakdown, Void> { @Override public @Nullable DistrictTeamListElement renderFromModel( DistrictPointBreakdown breakdown, Void aVoid) { return new DistrictTeamListElement( breakdown.getTeamKey(), breakdown.getDistrictKey(), breakdown.getTeamName(), breakdown.getRank(), breakdown.getTotal()); } @Inject  DistrictPointBreakdownRenderer(); @Override @Nullable ListElement renderFromKey(String key, ModelType type, Void args); @Override @Nullable DistrictTeamListElement renderFromModel(
      DistrictPointBreakdown breakdown,
      Void aVoid);  }