Module org.easymock
Package org.easymock

Enum Class MockType

java.lang.Object
java.lang.Enum<MockType>
org.easymock.MockType
All Implemented Interfaces:
Serializable, Comparable<MockType>, java.lang.constant.Constable

public enum MockType extends Enum<MockType>
Enum describing the 3 possibles kind of mocks
Since:
3.2
Author:
Henri Tremblay
  • Enum Constant Details

    • NICE

      public static final MockType NICE
      A nice mock expects recorded calls in any order and returning null for other calls
    • DEFAULT

      public static final MockType DEFAULT
      A default mock expects only recorded calls but in any order
    • STRICT

      public static final MockType STRICT
      A strict mock expects only recorded calls and they should be replayed in their recorded order
  • Method Details

    • values

      public static MockType[] 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 MockType 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