@Test public void getListReturnsJsonList() throws Exception { testJSON = new JSONObject(); testJSON.put(testKey, testList); final Representation request = mockedJsonRequest(testJSON.toString()); classUnderTest = new RequestParametersJson(request); assertEquals(testList, classUnderTest.getList(testKey)); }
@Override public List<?> getList(final String parameter) { return jsonArrayToList((JSONArray) getValue(parameter)); }
RequestParametersJson extends RequestParameters { @Override public List<?> getList(final String parameter) { return jsonArrayToList((JSONArray) getValue(parameter)); } }
RequestParametersJson extends RequestParameters { @Override public List<?> getList(final String parameter) { return jsonArrayToList((JSONArray) getValue(parameter)); } RequestParametersJson(final Representation request); }
RequestParametersJson extends RequestParameters { @Override public List<?> getList(final String parameter) { return jsonArrayToList((JSONArray) getValue(parameter)); } RequestParametersJson(final Representation request); @Override String getString(final String parameter); @Override List<?> getList(final String parameter); @Override Object[] getArray(final String parameter); }
RequestParametersJson extends RequestParameters { @Override public List<?> getList(final String parameter) { return jsonArrayToList((JSONArray) getValue(parameter)); } RequestParametersJson(final Representation request); @Override String getString(final String parameter); @Override List<?> getList(final String parameter); @Override Object[] getArray(final String parameter);  }