org.unitils.mock.report.impl

Class DetailedObservedInvocationsReport

    • Constructor Detail

      • DetailedObservedInvocationsReport

        public DetailedObservedInvocationsReport(Object testedObject)
    • Method Detail

      • createReport

        public String createReport(List<ObservedInvocation> observedInvocations)
        Creates a string representation of the given scenario as described in the class javadoc.
        Overrides:
        createReport in class ObservedInvocationsReport
        Parameters:
        observedInvocations - The invocations for which to create a report, not null
        Returns:
        The string representation, not null
      • formatInvokedAt

        protected String formatInvokedAt(ProxyInvocation proxyInvocation)
        Creates a string representation of the details of the given invocation. This will give information about where the invocation occurred.
        Overrides:
        formatInvokedAt in class ProxyInvocationsReport
        Parameters:
        proxyInvocation - The invocation to format, not null
        Returns:
        The string representation, not null
      • formatBehaviorDetails

        protected String formatBehaviorDetails(ObservedInvocation observedInvocation)
        Creates a string representation of the behavior details of the given invocation. This will give information about where the mock behavior was recorded.
        Parameters:
        observedInvocation - The invocation to format, not null
        Returns:
        The string representation, not null
      • formatLargeObjects

        protected String formatLargeObjects(List<ProxyInvocationsReport.FormattedObject> largeObjects)
        Format the values that were to long to be displayed inline
        Parameters:
        largeObjects - The large value representations, not null
        Returns:
        The string representation, not null

Copyright © 2016. All Rights Reserved.