Enum Class MoreAnswers

java.lang.Object
java.lang.Enum<MoreAnswers>
org.opendaylight.mockito.MoreAnswers
All Implemented Interfaces:
Serializable, Comparable<MoreAnswers>, Constable, org.mockito.stubbing.Answer<Object>

public enum MoreAnswers extends Enum<MoreAnswers> implements org.mockito.stubbing.Answer<Object>
Additional Answers.
  • Enum Constant Details

  • Method Details

    • values

      public static MoreAnswers[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MoreAnswers valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • answer

      public Object answer(org.mockito.invocation.InvocationOnMock invocation) throws Throwable
      Specified by:
      answer in interface org.mockito.stubbing.Answer<Object>
      Throws:
      Throwable