MockNameImpl
Date: 2015-09-18

org.mockito.internal.util

## Class MockNameImpl

- java.lang.Object
- - org.mockito.internal.util.MockNameImpl

- All Implemented Interfaces:
    java.io.Serializable, MockName

      public class MockNameImpl
      extends java.lang.Object
      implements MockName, java.io.Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MockNameImpl(java.lang.String mockName)`
    `MockNameImpl(java.lang.String mockName, java.lang.Class classToMock)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isDefault()` default name means generated by Mockito.
    `java.lang.String` | `toString()` the name

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MockNameImpl

          public MockNameImpl(java.lang.String mockName,
                      java.lang.Class classToMock)

    - #### MockNameImpl

          public MockNameImpl(java.lang.String mockName)

  - ### Method Detail

    - #### 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 java.lang.String toString()

      Description copied from interface: `MockName`
      the name
      Specified by:
        `toString` in interface `MockName`
      Overrides:
        `toString` in class `java.lang.Object`