@Test public void getArrayReturnsFormArray() throws Exception { final Map<String, String> testKVP = new HashMap<>(); final String testJoinedString = String.join(",", testArray); final Form form = mockedForm(testKVP); testKVP.put(testKey, testJoinedString); classUnderTest = new RequestParametersForm(form); assertArrayEquals(testArray, classUnderTest.getArray(testKey)); }
@Override public Object[] getArray(final String parameter) { return splitStringParameter(parameter); }
RequestParametersForm extends RequestParameters { @Override public Object[] getArray(final String parameter) { return splitStringParameter(parameter); } }
RequestParametersForm extends RequestParameters { @Override public Object[] getArray(final String parameter) { return splitStringParameter(parameter); } RequestParametersForm(final Form form); }
RequestParametersForm extends RequestParameters { @Override public Object[] getArray(final String parameter) { return splitStringParameter(parameter); } RequestParametersForm(final Form form); @Override String getString(final String parameter); @Override List<?> getList(final String parameter); @Override Object[] getArray(final String parameter); }
RequestParametersForm extends RequestParameters { @Override public Object[] getArray(final String parameter) { return splitStringParameter(parameter); } RequestParametersForm(final Form form); @Override String getString(final String parameter); @Override List<?> getList(final String parameter); @Override Object[] getArray(final String parameter);  }