1 /* 2 * Copyright (c) 2018 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockito.internal.listeners; 6 7 import org.mockito.invocation.Invocation; 8 import org.mockito.mock.MockCreationSettings; 9 import org.mockito.stubbing.Stubbing; 10 11 import java.util.Collection; 12 13 /** 14 * Represent an information about the looked up stubbing 15 */ 16 public interface StubbingLookupEvent { 17 /** 18 * @return The invocation that causes stubbing lookup 19 */ getInvocation()20 Invocation getInvocation(); 21 22 /** 23 * @return Looked up stubbing. It can be <code>null</code>, which indicates that the invocation was not stubbed 24 */ getStubbingFound()25 Stubbing getStubbingFound(); 26 27 /** 28 * @return All stubbings declared on the mock object that we are invoking 29 */ getAllStubbings()30 Collection<Stubbing> getAllStubbings(); 31 32 /** 33 * @return Settings of the mock object that we are invoking 34 */ getMockSettings()35 MockCreationSettings getMockSettings(); 36 } 37