@Test public void testTeamRankExtractor() { JsonArray teamRank = mExtractor.call(mRanks); int teamNumber = TeamHelper.getTeamNumber(mSearchTeamKey); assertNotNull(teamRank); assertEquals(teamRank.size(), 2); assertTrue(teamRank.get(0).isJsonArray()); assertEquals(teamRank.get(0), mRanks.get(0)); assertTrue(teamRank.get(1).isJsonArray()); assertEquals(teamRank.get(1).getAsJsonArray().get(1).getAsInt(), teamNumber); }
public TeamRankExtractor(String teamKey) { mTeamKey = teamKey; }
TeamRankExtractor implements Func1<JsonElement, JsonArray> { public TeamRankExtractor(String teamKey) { mTeamKey = teamKey; } }
TeamRankExtractor implements Func1<JsonElement, JsonArray> { public TeamRankExtractor(String teamKey) { mTeamKey = teamKey; } TeamRankExtractor(String teamKey); }
TeamRankExtractor implements Func1<JsonElement, JsonArray> { public TeamRankExtractor(String teamKey) { mTeamKey = teamKey; } TeamRankExtractor(String teamKey); @Override JsonArray call(JsonElement eventRanks); }
TeamRankExtractor implements Func1<JsonElement, JsonArray> { public TeamRankExtractor(String teamKey) { mTeamKey = teamKey; } TeamRankExtractor(String teamKey); @Override JsonArray call(JsonElement eventRanks);  }