org.apache.openejb.mockito
Class MockRegistry

java.lang.Object
  extended by 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


Constructor Summary
MockRegistry()
           
 
Method Summary
static Map<String,Object> mocksByName()
           
static Map<Class<?>,Object> mocksByType()
           
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockRegistry

public MockRegistry()
Method Detail

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.