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 DefaultMockingDetails

    java.lang.Object
      org.mockito.internal.util.DefaultMockingDetails

All Implemented Interfaces:
  MockingDetails

    public class DefaultMockingDetails

extends java.lang.Object
implements MockingDetails

Class to inspect any object, and identify whether a particular object is either a mock or a spy. This is a wrapper for `MockUtil`.

Constructor Summary
`DefaultMockingDetails(java.lang.Object toInspect, MockUtil delegate)`

Method Summary
`boolean` | `isMock()` Find out whether the object is a mock.
`boolean` | `isSpy()` Find out whether the object is a spy.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultMockingDetails

    public DefaultMockingDetails(java.lang.Object toInspect,
                                 MockUtil delegate)

Method Detail

### isMock

    public boolean isMock()

  Find out whether the object is a mock.

  Specified by:
    `isMock` in interface `MockingDetails`
  Returns:
    true if the object is a mock or a spy.

### isSpy

    public boolean isSpy()

  Find out whether the object is a spy.

  Specified by:
    `isSpy` in interface `MockingDetails`
  Returns:
    true if the object is a spy.

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