|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.test.Reporter
public class Reporter
The reporter generates extensive human readable reports of what the expected outcome of a test was, and what the actual results were.
| Constructor Summary | |
|---|---|
Reporter()
|
|
| Method Summary | |
|---|---|
void |
reportDifferenceInStoredVsPublished(Collection<DomainEventMessage> storedEvents,
Collection<EventMessage> publishedEvents,
Throwable probableCause)
Report a failed assertion due to a difference in the stored versus the published events. |
void |
reportDifferentEventContents(Class<?> eventType,
Field field,
Object actual,
Object expected)
Report an error due to a difference in on of the fields of an event. |
void |
reportUnexpectedException(Throwable actualException,
org.hamcrest.Description expectation)
Reports an error due to an unexpected exception. |
void |
reportUnexpectedReturnValue(Object actualReturnValue,
org.hamcrest.Description description)
Report an error due to an unexpected return value, while an exception was expected. |
void |
reportWrongEvent(Collection<?> actualEvents,
Collection<?> expectedEvents,
Throwable probableCause)
Report an error in the ordering or count of events. |
void |
reportWrongEvent(Collection<?> actualEvents,
org.hamcrest.StringDescription expectation,
Throwable probableCause)
Report an error in the ordering or count of events. |
void |
reportWrongException(Throwable actualException,
org.hamcrest.Description description)
Report an error due to a an exception of an unexpected type. |
void |
reportWrongResult(Object actualReturnValue,
org.hamcrest.Description expectation)
Reports an error due to a wrong return value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reporter()
| Method Detail |
|---|
public void reportDifferenceInStoredVsPublished(Collection<DomainEventMessage> storedEvents,
Collection<EventMessage> publishedEvents,
Throwable probableCause)
storedEvents - The events that were storedpublishedEvents - The events that were publishedprobableCause - An exception that might be the cause of the failure
public void reportWrongEvent(Collection<?> actualEvents,
Collection<?> expectedEvents,
Throwable probableCause)
actualEvents - The events that were foundexpectedEvents - The events that were expectedprobableCause - An optional exception that might be the reason for wrong events
public void reportWrongEvent(Collection<?> actualEvents,
org.hamcrest.StringDescription expectation,
Throwable probableCause)
actualEvents - The events that were foundexpectation - A Description of what was expectedprobableCause - An optional exception that might be the reason for wrong events
public void reportUnexpectedException(Throwable actualException,
org.hamcrest.Description expectation)
actualException - The actual exceptionexpectation - A text describing what was expected
public void reportWrongResult(Object actualReturnValue,
org.hamcrest.Description expectation)
actualReturnValue - The actual return valueexpectation - A description of the expected value
public void reportUnexpectedReturnValue(Object actualReturnValue,
org.hamcrest.Description description)
actualReturnValue - The actual return valuedescription - A description describing the expected value
public void reportWrongException(Throwable actualException,
org.hamcrest.Description description)
actualException - The actual exceptiondescription - A description describing the expected value
public void reportDifferentEventContents(Class<?> eventType,
Field field,
Object actual,
Object expected)
eventType - The (runtime) type of event the difference was found infield - The field that contains the differenceactual - The actual value of the fieldexpected - The expected value of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||