@Test public void getSimpleNameReturnsDeclaringClassSimpleName() { class Instantiated {} FunkyFunction<Instantiated> executor = new FunkyFunction<Instantiated>(Instantiated.class); assertEquals("Instantiated", executor.getClassSimpleName()); }
@Override public String getClassSimpleName() { return constructor.getDeclaringClass().getSimpleName(); }
FunkyFunction implements ClassFunction<T> { @Override public String getClassSimpleName() { return constructor.getDeclaringClass().getSimpleName(); } }
FunkyFunction implements ClassFunction<T> { @Override public String getClassSimpleName() { return constructor.getDeclaringClass().getSimpleName(); } FunkyFunction(Class<T> applyingClass, Object... constructorArguments); }
FunkyFunction implements ClassFunction<T> { @Override public String getClassSimpleName() { return constructor.getDeclaringClass().getSimpleName(); } FunkyFunction(Class<T> applyingClass, Object... constructorArguments); T execute(); @Override String getClassSimpleName(); }
FunkyFunction implements ClassFunction<T> { @Override public String getClassSimpleName() { return constructor.getDeclaringClass().getSimpleName(); } FunkyFunction(Class<T> applyingClass, Object... constructorArguments); T execute(); @Override String getClassSimpleName();  }