Package org.mockito.internal.returnvalues

Source Code of org.mockito.internal.returnvalues.GloballyConfiguredReturnValues

/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.returnvalues;

import org.mockito.ReturnValues;
import org.mockito.internal.configuration.GlobalConfiguration;
import org.mockito.invocation.InvocationOnMock;

/**
* ReturnValues from global configuration
*/
public class GloballyConfiguredReturnValues implements ReturnValues {
   
    public Object valueFor(InvocationOnMock invocation) {
        return new GlobalConfiguration().getReturnValues().valueFor(invocation);
    }
}
TOP

Related Classes of org.mockito.internal.returnvalues.GloballyConfiguredReturnValues

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.