public class ObservedInvocationsReport extends ProxyInvocationsReport
1. mock.method1()) -> string1 ..... at MyTest.testMethod(MyTest.java:60)
2. mock.method1("bla", 4) -> null ..... at MyTest.testMethod(MyTest.java:62)
3. mock.anotherMethod(myClass1) ..... at MyTest.testMethod(MyTest.java:64)
ProxyInvocationsReport.FormattedObjectMAX_INLINE_PARAMETER_LENGTH, OBJECT_FORMATTER_MAX_NR_ARRAY_OR_COLLECTION_ELEMENTS, OBJECT_FORMATTER_MAX_RECURSION_DEPT, objectFormatter, testedObjectFieldValuesAndNames| Constructor and Description |
|---|
ObservedInvocationsReport(Object testedObject) |
| Modifier and Type | Method and Description |
|---|---|
String |
createReport(List<ObservedInvocation> observedInvocations)
Creates a string representation of the given invocations as described in the class javadoc.
|
protected String |
formatMockName(ObservedInvocation observedInvocation) |
protected String |
formatObservedInvocation(ObservedInvocation observedInvocation,
List<ProxyInvocationsReport.FormattedObject> currentLargeObjects,
Map<Object,ProxyInvocationsReport.FormattedObject> allLargeObjects,
Map<Class<?>,Integer> largeObjectNameIndexes)
Creates a string representation of the given invocation.
|
createLargeValueName, formatInvocationIndex, formatInvokedAt, formatObject, formatValue, getFieldValuesAndNamespublic ObservedInvocationsReport(Object testedObject)
public String createReport(List<ObservedInvocation> observedInvocations)
observedInvocations - The invocations for which to create a report, not nullprotected String formatObservedInvocation(ObservedInvocation observedInvocation, List<ProxyInvocationsReport.FormattedObject> currentLargeObjects, Map<Object,ProxyInvocationsReport.FormattedObject> allLargeObjects, Map<Class<?>,Integer> largeObjectNameIndexes)
ProxyInvocationsReport.createLargeValueName(java.lang.Class<?>, java.util.Map<java.lang.Class<?>, java.lang.Integer>) method.observedInvocation - The invocation to format, not nullcurrentLargeObjects - The current the large values, not nullallLargeObjects - All large values per value, not nulllargeObjectNameIndexes - The current indexes to use for the large value names (per value type), not nullprotected String formatMockName(ObservedInvocation observedInvocation)
Copyright © 2016. All Rights Reserved.