public class Scenario extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Scenario.VerificationStatus |
| Modifier and Type | Field and Description |
|---|---|
protected List<Scenario.VerificationStatus> |
invocationVerificationStatuses |
protected List<ObservedInvocation> |
observedInvocations |
protected Object |
testObject |
protected List<ObservedInvocation> observedInvocations
protected List<Scenario.VerificationStatus> invocationVerificationStatuses
protected Object testObject
public Scenario(Object testObject)
public void reset()
public Object getTestObject()
public void setTestObject(Object testObject)
public void addObservedMockInvocation(ObservedInvocation mockInvocation)
public List<ObservedInvocation> getObservedInvocations()
public void assertNoMoreInvocations(StackTraceElement[] assertedAt)
public void assertInvoked(BehaviorDefiningInvocation assertInvocation)
public void assertInvokedInOrder(BehaviorDefiningInvocation assertInvocation)
public void assertNotInvoked(BehaviorDefiningInvocation assertInvocation)
public String createFullReport()
public String createObservedInvocationsReport()
public String createDetailedObservedInvocationsReport()
public String createSuggestedAssertsReport()
protected String getAssertNotInvokedErrorMessage(ProxyInvocation proxyInvocation, ObservedInvocation unexpectedInvocation, StackTraceElement[] assertedAt)
protected String getAssertInvokedErrorMessage(ProxyInvocation proxyInvocation, StackTraceElement invokedAt)
protected String getInvokedOutOfOrderErrorMessage(ObservedInvocation matchingInvocation, ObservedInvocation outOfOrderInvocation, StackTraceElement assertedAt)
protected String getNoMoreInvocationsErrorMessage(List<ObservedInvocation> unexpectedInvocations, StackTraceElement assertedAt)
protected String getAssertLocationIndication(StackTraceElement assertedAt)
Copyright © 2016. All Rights Reserved.