public class MockInitialContextFactory extends Object implements InitialContextFactory
InitialContextFactoryinterface. This implementation will return a mock context that contains some test data.
|Modifier and Type||Field and Description|
Constant for the use cycles environment property.
|Constructor and Description|
public Context getInitialContext(Hashtable env) throws NamingException
Contextobject that is backed by a mock object. The mock context can be queried for the values of certain test properties. It also supports listing the contained (sub) properties.
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.