private Object[] msgArgs(String description) { return array(description, toStringOf(expected), toStringOf(actual)); }
DecoratorInvocationHandler<T> handler = new PostDecorator<T>(target, decorator); @SuppressWarnings("unchecked") T field = (T) Proxy.newProxyInstance(decorator.getClass().getClassLoader(), array(expectedType), handler); set(field); return DecoratedInvoker.newInvoker(target, decorator, expectedType, this, handler);
DecoratorInvocationHandler<T> handler = new PreDecorator<T>(target, decorator); @SuppressWarnings("unchecked") T field = (T) Proxy.newProxyInstance(decorator.getClass().getClassLoader(), array(expectedType), handler); set(field); return DecoratedInvoker.newInvoker(target, decorator, expectedType, this, handler);