@Test public void getArrayReturnsJsonArray() throws Exception { testJSON = new JSONObject(); testJSON.put(testKey, testArray); final Representation request = mockedJsonRequest(testJSON.toString()); classUnderTest = new RequestParametersJson(request); assertArrayEquals(testArray, classUnderTest.getArray(testKey)); }
@Override public Object[] getArray(final String parameter) { return jsonArrayToArray((JSONArray) getValue(parameter)); }
RequestParametersJson extends RequestParameters { @Override public Object[] getArray(final String parameter) { return jsonArrayToArray((JSONArray) getValue(parameter)); } }
RequestParametersJson extends RequestParameters { @Override public Object[] getArray(final String parameter) { return jsonArrayToArray((JSONArray) getValue(parameter)); } RequestParametersJson(final Representation request); }
RequestParametersJson extends RequestParameters { @Override public Object[] getArray(final String parameter) { return jsonArrayToArray((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 Object[] getArray(final String parameter) { return jsonArrayToArray((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);  }