Package org.assertj.core.api
Class ErrorCollector
- java.lang.Object
-
- 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
Constructors Constructor Description ErrorCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(Throwable error)List<Throwable>errors()Objectintercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy)booleanwasSuccess()
-
-
-
Method Detail
-
intercept
public Object intercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws Throwable
- Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
Throwable
-
addError
public void addError(Throwable error)
-
wasSuccess
public boolean wasSuccess()
-
-