@Test @Ignore("Requires external HTTP requests to be made") public void testRequestDimensions() throws JSONException { org.junit.Assume.assumeTrue(TestHelper.canDoHttp()); org.junit.Assume.assumeTrue(TestHelper.redisAvailable()); String json = request.getDimensions(); JSONArray dimensions = JSONHelper.createJSONArray(json); for (int i = 0; i < dimensions.length(); i++) { JSONObject dimension = dimensions.getJSONObject(i); assertNotNull("dimension has no id", dimension.optString("id", null)); assertNotNull("dimension has no codes", dimension.optJSONArray("codes")); } }
public String getDimensions() { return getData(PATH_DIMENSIONS.replace(PLACEHOLDER_GOAL, goal), Collections.EMPTY_MAP); }
UnsdRequest { public String getDimensions() { return getData(PATH_DIMENSIONS.replace(PLACEHOLDER_GOAL, goal), Collections.EMPTY_MAP); } }
UnsdRequest { public String getDimensions() { return getData(PATH_DIMENSIONS.replace(PLACEHOLDER_GOAL, goal), Collections.EMPTY_MAP); } UnsdRequest(UnsdConfig config); }
UnsdRequest { public String getDimensions() { return getData(PATH_DIMENSIONS.replace(PLACEHOLDER_GOAL, goal), Collections.EMPTY_MAP); } UnsdRequest(UnsdConfig config); void setGoal(String goal); void setIndicator(String indicator); void nextPage(); void setAreaCodes(String[] areaCodes); String getTargets(); String getDimensions(); String getIndicatorData(StatisticalIndicatorDataModel selectors); }
UnsdRequest { public String getDimensions() { return getData(PATH_DIMENSIONS.replace(PLACEHOLDER_GOAL, goal), Collections.EMPTY_MAP); } UnsdRequest(UnsdConfig config); void setGoal(String goal); void setIndicator(String indicator); void nextPage(); void setAreaCodes(String[] areaCodes); String getTargets(); String getDimensions(); String getIndicatorData(StatisticalIndicatorDataModel selectors);  }