1 /* 2 * Copyright (c) 2016 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockito.listeners; 6 7 import org.mockito.mock.MockCreationSettings; 8 9 /** 10 * Notified when mock object is created. 11 * For more information on listeners see {@link org.mockito.MockitoFramework#addListener(MockitoListener)}. 12 */ 13 public interface MockCreationListener extends MockitoListener { 14 15 /** 16 * Mock object was just created. 17 * 18 * @param mock created mock object 19 * @param settings the settings used for creation 20 */ 21 void onMockCreated(Object mock, MockCreationSettings settings); 22 } 23