1 8 package org.codehaus.spice.jndikit.memory.test; 9 10 import javax.naming.Context ; 11 12 import org.codehaus.spice.jndikit.DefaultNameParser; 13 import org.codehaus.spice.jndikit.DefaultNamespace; 14 import org.codehaus.spice.jndikit.memory.MemoryContext; 15 import org.codehaus.spice.jndikit.test.TestObjectFactory; 16 import org.codehaus.spice.jndikit.test.TestStateFactory; 17 18 24 public class MemoryContextDefaultNamespaceTestCase 25 extends AbstractMemoryContextTestCase 26 { 27 28 protected Context getRoot() throws Exception 29 { 30 final DefaultNameParser parser = new DefaultNameParser(); 31 final DefaultNamespace namespace = new DefaultNamespace( parser ); 32 namespace.addObjectFactory( new TestObjectFactory() ); 33 namespace.addStateFactory( new TestStateFactory() ); 34 return new MemoryContext( namespace, null, null ); 35 } 36 } 37 | Popular Tags |