org.glite.data.common.mock
Class MockLibrary
java.lang.Object
org.glite.data.common.mock.MockLibrary
- public class MockLibrary
- extends java.lang.Object
Singleton place to put and access the generated MockObjects.
Used by the JNDI factory class (which the user code never sees) to give access
the generated Mock InitialContext, so that it xan be filled in with whatever
the test requires.
Field Summary |
static java.lang.String |
INITIAL_CONTEXT
The initial Moc k JNDI context, if it has been created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_CONTEXT
public static final java.lang.String INITIAL_CONTEXT
- The initial Moc k JNDI context, if it has been created.
- See Also:
- Constant Field Values
getMockLibrary
public static MockLibrary getMockLibrary()
put
public void put(java.lang.String key,
java.lang.Object ob)
get
public java.lang.Object get(java.lang.String key)
discardAll
public void discardAll()