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

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

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

import org.mockito.invocation.DescribedInvocation;

/**
 * Represent a method call on a mock.
 *
 * 

* Contains the information on the mock, the location of the stub * the return value if it returned something (maybe null), or an * exception if one was thrown when the method was invoked. *

*/ public interface MethodInvocationReport { /** * @return Information on the method call, never {@code null} */ DescribedInvocation getInvocation(); /** * @return The resulting value of the method invocation, may be null */ Object getReturnedValue(); /** * @return The throwable raised by the method invocation, maybe null */ Throwable getThrowable(); /** * @return true if an exception was raised, false otherwise */ boolean threwException(); /** * @return Location of the stub invocation */ String getLocationOfStubbing(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy