@Test public void delegatesCall() { functionWithInput.execute(null); verify(function).execute(); }
public T execute(Object input) { inputHolder.set(input); try { return executor.execute(); } finally { inputHolder.clean(); } }
FunkyFunctionWithInput implements ClassFunctionWithInput<T> { public T execute(Object input) { inputHolder.set(input); try { return executor.execute(); } finally { inputHolder.clean(); } } }
FunkyFunctionWithInput implements ClassFunctionWithInput<T> { public T execute(Object input) { inputHolder.set(input); try { return executor.execute(); } finally { inputHolder.clean(); } } FunkyFunctionWithInput(ClassFunction<T> executor, InputHolder inputHolder); }
FunkyFunctionWithInput implements ClassFunctionWithInput<T> { public T execute(Object input) { inputHolder.set(input); try { return executor.execute(); } finally { inputHolder.clean(); } } FunkyFunctionWithInput(ClassFunction<T> executor, InputHolder inputHolder); T execute(Object input); @Override String getClassSimpleName(); }
FunkyFunctionWithInput implements ClassFunctionWithInput<T> { public T execute(Object input) { inputHolder.set(input); try { return executor.execute(); } finally { inputHolder.clean(); } } FunkyFunctionWithInput(ClassFunction<T> executor, InputHolder inputHolder); T execute(Object input); @Override String getClassSimpleName();  }