org.assertj.core.api
Class ErrorCollector

java.lang.Object
  extended by org.assertj.core.api.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 Summary
ErrorCollector()
           
 
Method Summary
 List<Throwable> errors()
           
 Object intercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

errors

public List<Throwable> errors()


Copyright © 2013–2015 AssertJ. All rights reserved.