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

org.mockito.listeners.MockCreationListener Maven / Gradle / Ivy

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

import org.mockito.mock.MockCreationSettings;

/**
 * Notified when mock object is created.
 * For more information on listeners see {@link org.mockito.MockitoFramework#addListener(MockitoListener)}.
 */
public interface MockCreationListener extends MockitoListener {

    /**
     * Mock object was just created.
     *
     * @param mock created mock object
     * @param settings the settings used for creation
     */
    void onMockCreated(Object mock, MockCreationSettings settings);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy