java.lang.Object
org.easymock.internal.ErrorMessage
The full content of an error message reporting to the user.
- Author:
- OFFIS, Tammo Freese
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendTo
(StringBuilder buffer, int matches) Add the error message to the buffer.int
How many time an expected invocation was actually invoked.The actual invocation and its result.boolean
If the actual invocation matched the expected invocation.
-
Constructor Details
-
ErrorMessage
-
-
Method Details
-
isMatching
public boolean isMatching()If the actual invocation matched the expected invocation. It will be used to write the final error message telling that some recording are matching but were already used.- Returns:
- if the actual invocation matched the expected invocation
-
getMessage
The actual invocation and its result.- Returns:
- the actual invocation and its result
-
getActualCount
public int getActualCount()How many time an expected invocation was actually invoked.- Returns:
- how many time an expected invocation was actually invoked
-
appendTo
Add the error message to the buffer.- Parameters:
buffer
- the buffer to append tomatches
- how many times an actual invocation matched expected invocation
-