@Test public void shouldReplicateMethodParametersToNextRequest() throws Exception { when(provider.parameterNamesFor(any(Method.class))).thenReturn(new String[] {"first", "second", "third"}); when(method.getParameters()).thenReturn(new Object[] {1, 2.0, 3l}); outjector.outjectRequestMap(); verify(result).include("first", 1); verify(result).include("second", 2.0); verify(result).include("third", 3l); }
public void outjectRequestMap() { String[] names = provider.parameterNamesFor(method.getResourceMethod().getMethod()); for (int i = 0; i < names.length; i++) { result.include(names[i], method.getParameters()[i]); } }
ReplicatorOutjector implements Outjector { public void outjectRequestMap() { String[] names = provider.parameterNamesFor(method.getResourceMethod().getMethod()); for (int i = 0; i < names.length; i++) { result.include(names[i], method.getParameters()[i]); } } }
ReplicatorOutjector implements Outjector { public void outjectRequestMap() { String[] names = provider.parameterNamesFor(method.getResourceMethod().getMethod()); for (int i = 0; i < names.length; i++) { result.include(names[i], method.getParameters()[i]); } } ReplicatorOutjector(Result result, MethodInfo method, ParameterNameProvider provider); }
ReplicatorOutjector implements Outjector { public void outjectRequestMap() { String[] names = provider.parameterNamesFor(method.getResourceMethod().getMethod()); for (int i = 0; i < names.length; i++) { result.include(names[i], method.getParameters()[i]); } } ReplicatorOutjector(Result result, MethodInfo method, ParameterNameProvider provider); void outjectRequestMap(); }
ReplicatorOutjector implements Outjector { public void outjectRequestMap() { String[] names = provider.parameterNamesFor(method.getResourceMethod().getMethod()); for (int i = 0; i < names.length; i++) { result.include(names[i], method.getParameters()[i]); } } ReplicatorOutjector(Result result, MethodInfo method, ParameterNameProvider provider); void outjectRequestMap();  }