org.apache.openejb.mockito
Class MockRegistry
java.lang.Object
org.apache.openejb.mockito.MockRegistry
public class MockRegistry
- extends Object
this class is used as a storage for mocks
this logic could be enhanced but currently we store mock by types/name
Note: only injected mocks are managed
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockRegistry
public MockRegistry()
reset
public static void reset()
mocksByType
public static Map<Class<?>,Object> mocksByType()
mocksByName
public static Map<String,Object> mocksByName()
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.