Class MockNameImpl

java.lang.Object
org.mockito.internal.util.MockNameImpl
All Implemented Interfaces:
Serializable, MockName

public class MockNameImpl extends Object implements MockName, Serializable
See Also:
  • Constructor Details

    • MockNameImpl

      public MockNameImpl(String mockName, Class<?> type, MockType mockType)
    • MockNameImpl

      public MockNameImpl(String mockName)
  • Method Details

    • isDefault

      public boolean isDefault()
      Description copied from interface: MockName
      default name means generated by Mockito. non-default means the user has named the mock at creation.
      Specified by:
      isDefault in interface MockName
    • toString

      public String toString()
      Description copied from interface: MockName
      the name
      Specified by:
      toString in interface MockName
      Overrides:
      toString in class Object