All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.MockingDetails Maven / Gradle / Ivy

There is a newer version: 2.0.2-beta
Show newest version
/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito;

/**
 * Provides mocking information.
 * For example, you can identify whether a particular object is either a mock or a spy.
 *
 * @since 1.9.5
 */
@Incubating
public interface MockingDetails {
    
    /**
     * Informs if the object is a mock.
     * @return true if the object is a mock or a spy.
     *
     * @since 1.9.5
     */
    boolean isMock();

    /**
     * Informs if the object is a spy.
     * @return true if the object is a spy.
     *
     * @since 1.9.5
     */
    boolean isSpy();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy