Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`MockNameImpl(java.lang.String mockName)`
`MockNameImpl(java.lang.String mockName, java.lang.Class classToMock)`

Method Summary
`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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD