org.mockito.internal.handler.MockHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securemock Show documentation
Show all versions of securemock Show documentation
Libraries for Elasticsearch
The newest version!
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.handler;
import org.mockito.invocation.MockHandler;
import org.mockito.mock.MockCreationSettings;
/**
* by Szczepan Faber, created at: 5/21/12
*/
public class MockHandlerFactory {
public static MockHandler createMockHandler(MockCreationSettings settings) {
MockHandler handler = new MockHandlerImpl(settings);
MockHandler nullResultGuardian = new NullResultGuardian(handler);
return new InvocationNotifierHandler(nullResultGuardian, settings);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy