org.mockito
Interface MockingDetails

All Known Implementing Classes:
DefaultMockingDetails

@Incubating
public interface MockingDetails

Provides mocking information. For example, you can identify whether a particular object is either a mock or a spy.

Since:
1.9.5

Method Summary
 boolean isMock()
          Informs if the object is a mock.
 boolean isSpy()
          Informs if the object is a spy.
 

Method Detail

isMock

boolean isMock()
Informs if the object is a mock.

Returns:
true if the object is a mock or a spy.
Since:
1.9.5

isSpy

boolean isSpy()
Informs if the object is a spy.

Returns:
true if the object is a spy.
Since:
1.9.5