1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.mockito;
6
7/**
8 * Provides mocking information.
9 * For example, you can identify whether a particular object is either a mock or a spy.
10 *
11 * @since 1.9.5
12 */
13@Incubating
14public interface MockingDetails {
15
16    /**
17     * Informs if the object is a mock.
18     * @return true if the object is a mock or a spy.
19     *
20     * @since 1.9.5
21     */
22    boolean isMock();
23
24    /**
25     * Informs if the object is a spy.
26     * @return true if the object is a spy.
27     *
28     * @since 1.9.5
29     */
30    boolean isSpy();
31}