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

com.fitbur.mockito.internal.handler.MockHandlerFactory Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package com.fitbur.mockito.internal.handler;

import com.fitbur.mockito.internal.InternalMockHandler;
import com.fitbur.mockito.mock.MockCreationSettings;

/**
 * by Szczepan Faber, created at: 5/21/12
 */
public class MockHandlerFactory {

    public static  InternalMockHandler createMockHandler(MockCreationSettings settings) {
        InternalMockHandler handler = new MockHandlerImpl(settings);
        InternalMockHandler nullResultGuardian = new NullResultGuardian(handler);
        return new InvocationNotifierHandler(nullResultGuardian, settings);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy