@Test public void shouldIterateOverPreProccessedParamValuesNonEncoding() throws Exception { List<EncodedPair> expected1 = asList(mock(EncodedPair.class), mock(EncodedPair.class)); List<EncodedPair> expected2 = asList(); List<EncodedPair> expected3 = asList(mock(EncodedPair.class)); Param mockParam1 = mockParam(false, expected1); Param mockParam2 = mockParam(false, expected2); Param mockParam3 = mockParam(false, expected3); Iterator<EncodedPair> actual = ParamProcessors.iterate(asList(mockParam1, mockParam2, mockParam3), UTF8, false); assertTrue(actual.hasNext()); assertEquals(expected1.get(0), actual.next()); assertTrue(actual.hasNext()); assertEquals(expected1.get(1), actual.next()); assertTrue(actual.hasNext()); assertEquals(expected3.get(0), actual.next()); assertFalse(actual.hasNext()); }
public static Iterator<EncodedPair> iterate(List<Param> params, Charset charset){ return iterate(params, charset, true); }
ParamProcessors { public static Iterator<EncodedPair> iterate(List<Param> params, Charset charset){ return iterate(params, charset, true); } }
ParamProcessors { public static Iterator<EncodedPair> iterate(List<Param> params, Charset charset){ return iterate(params, charset, true); } private  ParamProcessors(); }
ParamProcessors { public static Iterator<EncodedPair> iterate(List<Param> params, Charset charset){ return iterate(params, charset, true); } private  ParamProcessors(); static ParamProcessor newInstance(ParamType type, String listSeparator); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset, boolean encodeIfNeeded); }
ParamProcessors { public static Iterator<EncodedPair> iterate(List<Param> params, Charset charset){ return iterate(params, charset, true); } private  ParamProcessors(); static ParamProcessor newInstance(ParamType type, String listSeparator); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset, boolean encodeIfNeeded);  }