@Mock public static void validatePublicVoidNoArg( Invocation invocation, boolean isStatic, List<Throwable> errors) { FrameworkMethod it = invocation.getInvokedInstance(); if (!isStatic && it.getMethod().getParameterTypes().length > 0) { it.validatePublicVoid(false, errors); return; } invocation.proceed(); }
@Mock public Object invokeExplosively(Invocation invocation, Object target, Object... params) throws Throwable { FrameworkMethod it = invocation.getInvokedInstance(); return decorator.invokeExplosively(it, target, params); }