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
Collects error messages of all AssertionErrors thrown by the proxied method.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private final ErrorCollector.LastResult
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INTERCEPT_METHOD_NAME
- See Also:
-
CLASS_NAME
-
errors
-
lastResult
-
-
Constructor Details
-
ErrorCollector
public ErrorCollector()
-
-
Method Details
-
intercept
public Object intercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws Throwable - Specified by:
intercept
in interfacenet.sf.cglib.proxy.MethodInterceptor
- Throws:
Throwable
-
addError
-
errors
-
wasSuccess
public boolean wasSuccess() -
isNestedErrorCollectorProxyCall
private boolean isNestedErrorCollectorProxyCall() -
countErrorCollectorProxyCalls
private static int countErrorCollectorProxyCalls()
-