• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.internal.handler;
6 
7 import org.mockito.invocation.MockHandler;
8 import org.mockito.mock.MockCreationSettings;
9 
10 /**
11  * by Szczepan Faber, created at: 5/21/12
12  */
13 public class MockHandlerFactory {
14 
createMockHandler(MockCreationSettings<T> settings)15     public static <T> MockHandler<T> createMockHandler(MockCreationSettings<T> settings) {
16         MockHandler<T> handler = new MockHandlerImpl<T>(settings);
17         MockHandler<T> nullResultGuardian = new NullResultGuardian<T>(handler);
18         return new InvocationNotifierHandler<T>(nullResultGuardian, settings);
19     }
20 }
21