1 45 package org.openejb.test.entity.bmp; 46 47 import java.util.Properties ; 48 49 import javax.ejb.EJBMetaData ; 50 import javax.ejb.Handle ; 51 import javax.ejb.HomeHandle ; 52 import javax.naming.Context ; 53 import javax.naming.InitialContext ; 54 55 import org.openejb.test.TestManager; 56 57 62 public abstract class BmpTestClient extends org.openejb.test.NamedTestCase{ 63 64 protected InitialContext initialContext; 65 66 protected EJBMetaData ejbMetaData; 67 protected HomeHandle ejbHomeHandle; 68 protected Handle ejbHandle; 69 protected Object ejbPrimaryKey; 70 71 public BmpTestClient(String name){ 72 super("Entity.BMP."+name); 73 } 74 75 79 protected void setUp() throws Exception { 80 81 Properties properties = TestManager.getServer().getContextEnvironment(); 82 properties.put(Context.SECURITY_PRINCIPAL, "ENTITY_TEST_CLIENT"); 83 properties.put(Context.SECURITY_CREDENTIALS, "ENTITY_TEST_CLIENT"); 84 85 initialContext = new InitialContext (properties); 86 87 } 88 protected void tearDown() throws Exception { 89 90 } 91 92 93 94 95 } 96 | Popular Tags |