org.pojava.persistence.jndi
Class TestingContextFactory

java.lang.Object
  extended by org.pojava.persistence.jndi.TestingContextFactory
All Implemented Interfaces:
InitialContextFactory

public class TestingContextFactory
extends Object
implements InitialContextFactory

Factory class for instantiating an InitialContext for unit testing.

Author:
John Pile

Constructor Summary
TestingContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable<?,?> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestingContextFactory

public TestingContextFactory()
Method Detail

getInitialContext

public Context getInitialContext(Hashtable<?,?> map)
                          throws NamingException
Specified by:
getInitialContext in interface InitialContextFactory
Throws:
NamingException


Copyright © 2011. All Rights Reserved.