@Test public void getInputHolderReturnsGivenInputHolder() { InputHolder inputHolder = mock(InputHolder.class); FunctionFactory funkyFactory = new FunctionFactory(inputHolder); assertSame(inputHolder, funkyFactory.getInputHolder()); }
public InputHolder getInputHolder() { return inputHolder; }
FunctionFactory { public InputHolder getInputHolder() { return inputHolder; } }
FunctionFactory { public InputHolder getInputHolder() { return inputHolder; } FunctionFactory(InputHolder inputHolder); }
FunctionFactory { public InputHolder getInputHolder() { return inputHolder; } FunctionFactory(InputHolder inputHolder); ClassFunction<T> newFunction(Class<T> applyingClass, Object... constructorArguments); ClassFunctionWithInput<T> newFunctionWithInput(Class<T> applyingClass, Object... constructorArguments); InputHolder getInputHolder(); }
FunctionFactory { public InputHolder getInputHolder() { return inputHolder; } FunctionFactory(InputHolder inputHolder); ClassFunction<T> newFunction(Class<T> applyingClass, Object... constructorArguments); ClassFunctionWithInput<T> newFunctionWithInput(Class<T> applyingClass, Object... constructorArguments); InputHolder getInputHolder();  }