Module org.easymock

Class ArgumentToString

java.lang.Object
org.easymock.internal.ArgumentToString

public final class ArgumentToString extends Object
Utility class to convert method arguments to Strings
Author:
Henri Tremblay
  • Method Details

    • appendArgument

      public static void appendArgument(Object value, StringBuffer buffer)
    • argumentToString

      public static String argumentToString(Object argument)
      Converts an argument to a String using appendArgument(Object, StringBuffer)
      Parameters:
      argument - the argument to convert to a String.
      Returns:
      a String representation of the argument.
    • argumentsToString

      public static String argumentsToString(Object... arguments)
      Returns a string representation of the arguments. This convenience implementation calls argumentToString(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.