1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockito.invocation; 6 7 8 /** 9 * Provides information about the invocation, specifically a human readable description and the location. 10 */ 11 public interface DescribedInvocation { 12 13 /** 14 * Describes the invocation in the human friendly way. 15 * 16 * @return the description of this invocation. 17 */ toString()18 String toString(); 19 20 /** 21 * The place in the code where the invocation happened. 22 * 23 * @return the location of the invocation. 24 */ getLocation()25 Location getLocation(); 26 } 27