java.lang.Object
org.easymock.internal.ArgumentToString
Utility class to convert method arguments to Strings
- Author:
- Henri Tremblay
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendArgument
(Object value, StringBuffer buffer) static String
argumentsToString
(Object... arguments) Returns a string representation of the arguments.static String
argumentToString
(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
String
representation 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.
-