public class DetailedObservedInvocationsReport extends ObservedInvocationsReport
1. mock.method1() -> string1
- string1 -> "1234567891234567890"
- Observed at MyTest.testMethod(MyTest.java:75)
- Behavior defined at MyTest.myTest(MyTest.java:37)
2. mock.method1("value", 4) -> null
- Observed at MyTest.testMethod(MyTest.java:77)
- No behavior defined, returned default value.
ProxyInvocationsReport.FormattedObjectMAX_INLINE_PARAMETER_LENGTH, OBJECT_FORMATTER_MAX_NR_ARRAY_OR_COLLECTION_ELEMENTS, OBJECT_FORMATTER_MAX_RECURSION_DEPT, objectFormatter, testedObjectFieldValuesAndNames| Constructor and Description |
|---|
DetailedObservedInvocationsReport(Object testedObject) |
| Modifier and Type | Method and Description |
|---|---|
String |
createReport(List<ObservedInvocation> observedInvocations)
Creates a string representation of the given scenario as described in the class javadoc.
|
protected String |
formatBehaviorDetails(ObservedInvocation observedInvocation)
Creates a string representation of the behavior details of the given invocation.
|
protected String |
formatInvokedAt(ProxyInvocation proxyInvocation)
Creates a string representation of the details of the given invocation.
|
protected String |
formatLargeObjects(List<ProxyInvocationsReport.FormattedObject> largeObjects)
Format the values that were to long to be displayed inline
|
formatMockName, formatObservedInvocationcreateLargeValueName, formatInvocationIndex, formatObject, formatValue, getFieldValuesAndNamespublic DetailedObservedInvocationsReport(Object testedObject)
public String createReport(List<ObservedInvocation> observedInvocations)
createReport in class ObservedInvocationsReportobservedInvocations - The invocations for which to create a report, not nullprotected String formatInvokedAt(ProxyInvocation proxyInvocation)
formatInvokedAt in class ProxyInvocationsReportproxyInvocation - The invocation to format, not nullprotected String formatBehaviorDetails(ObservedInvocation observedInvocation)
observedInvocation - The invocation to format, not nullprotected String formatLargeObjects(List<ProxyInvocationsReport.FormattedObject> largeObjects)
largeObjects - The large value representations, not nullCopyright © 2016. All Rights Reserved.