Top Description Fields Constructors Methods
org.easymock.internal

public Class ErrorMessage

extends Object
Class Inheritance

The full content of an error message reporting to the user.
Author
OFFIS, Tammo Freese

Field Summary

Modifier and TypeField and Description
private final int
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
public
ErrorMessage(boolean matching, String message, int actualCount)

Method Summary

Modifier and TypeMethod and Description
public void
appendTo(StringBuilder
the buffer to append to
buffer
,
int
how many times an actual invocation matched expected invocation
matches
)

Add the error message to the buffer.

public int

Returns:

how many time an expected invocation was actually invoked
getActualCount
()

How many time an expected invocation was actually invoked.

public String

Returns:

the actual invocation and its result
getMessage
()

The actual invocation and its result.

public boolean

Returns:

if the actual invocation matched the expected invocation
isMatching
()

If the actual invocation matched the expected invocation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actualCountback to summary
private final int actualCount
matchingback to summary
private final boolean matching
messageback to summary
private final String message

Constructor Detail

ErrorMessageback to summary
public ErrorMessage(boolean matching, String message, int actualCount)

Method Detail

appendToback to summary
public void appendTo(StringBuilder buffer, int matches)

Add the error message to the buffer.

Parameters
buffer:StringBuilder

the buffer to append to

matches:int

how many times an actual invocation matched expected invocation

getActualCountback to summary
public int getActualCount()

How many time an expected invocation was actually invoked.

Returns:int

how many time an expected invocation was actually invoked

getMessageback to summary
public String getMessage()

The actual invocation and its result.

Returns:String

the actual invocation and its result

isMatchingback to summary
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:boolean

if the actual invocation matched the expected invocation