java.lang.Object
org.easymock.internal.ArgumentToString
Utility class to convert method arguments to Strings
- Author:
- Henri Tremblay
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendArgument(Object value, StringBuffer buffer) static StringargumentsToString(Object... arguments) Returns a string representation of the arguments.static StringargumentToString(Object argument) Converts an argument to a String usingappendArgument(Object, StringBuffer)
-
Method Details
-
appendArgument
-
argumentToString
Converts an argument to a String usingappendArgument(Object, StringBuffer)- Parameters:
argument- the argument to convert to a String.- Returns:
- a
Stringrepresentation of the argument.
-
argumentsToString
Returns a string representation of the arguments. This convenience implementation callsargumentToString(Object)for every argument in the given array and returns the string representations of the arguments separated by commas.- Parameters:
arguments- the arguments to be used in the string representation.- Returns:
- a string representation of the matcher.
-