@Test public void testRunCorrectly() { FunctionRunningCallable<String> functionRunningCallable = new FunctionRunningCallable<String>(listener, function); functionRunningCallable.run(); verify(function).apply(listener); }
@Override public void run() { function.apply(listener); }
FunctionRunningCallable implements Runnable { @Override public void run() { function.apply(listener); } }
FunctionRunningCallable implements Runnable { @Override public void run() { function.apply(listener); } FunctionRunningCallable(@Nonnull T listener, @Nonnull Function<T, ?> function); }
FunctionRunningCallable implements Runnable { @Override public void run() { function.apply(listener); } FunctionRunningCallable(@Nonnull T listener, @Nonnull Function<T, ?> function); @Override void run(); }
FunctionRunningCallable implements Runnable { @Override public void run() { function.apply(listener); } FunctionRunningCallable(@Nonnull T listener, @Nonnull Function<T, ?> function); @Override void run();  }