Class ErrorCollector

  • All Implemented Interfaces:
    net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

    public class ErrorCollector
    extends Object
    implements net.sf.cglib.proxy.MethodInterceptor
    Collects error messages of all AssertionErrors thrown by the proxied method.
    • Constructor Detail

      • ErrorCollector

        public ErrorCollector()
    • Method Detail

      • intercept

        public Object intercept​(Object obj,
                                Method method,
                                Object[] args,
                                net.sf.cglib.proxy.MethodProxy proxy)
                         throws Throwable
        Specified by:
        intercept in interface net.sf.cglib.proxy.MethodInterceptor
        Throws:
        Throwable
      • addError

        public void addError​(Throwable error)
      • wasSuccess

        public boolean wasSuccess()