@Test public void getListReturnsFormList() throws Exception { final Map<String, String> testKVP = new HashMap<>(); final String testJoinedString = String.join(",", testList); final Form form = mockedForm(testKVP); testKVP.put(testKey, testJoinedString); classUnderTest = new RequestParametersForm(form); assertEquals(testList, classUnderTest.getList(testKey)); }
@Override public List<?> getList(final String parameter) { final String[] str = splitStringParameter(parameter); if (str == null) { return null; } return Arrays.asList(str); }
RequestParametersForm extends RequestParameters { @Override public List<?> getList(final String parameter) { final String[] str = splitStringParameter(parameter); if (str == null) { return null; } return Arrays.asList(str); } }
RequestParametersForm extends RequestParameters { @Override public List<?> getList(final String parameter) { final String[] str = splitStringParameter(parameter); if (str == null) { return null; } return Arrays.asList(str); } RequestParametersForm(final Form form); }
RequestParametersForm extends RequestParameters { @Override public List<?> getList(final String parameter) { final String[] str = splitStringParameter(parameter); if (str == null) { return null; } return Arrays.asList(str); } 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 List<?> getList(final String parameter) { final String[] str = splitStringParameter(parameter); if (str == null) { return null; } return Arrays.asList(str); } RequestParametersForm(final Form form); @Override String getString(final String parameter); @Override List<?> getList(final String parameter); @Override Object[] getArray(final String parameter);  }