1 45 package org.openejb.test.entity.bmp; 46 47 import java.util.Properties ; 48 49 import javax.naming.Context ; 50 import javax.naming.InitialContext ; 51 52 import org.openejb.test.TestManager; 53 54 59 public class BmpTestSuite extends org.openejb.test.TestSuite{ 60 61 public BmpTestSuite(){ 62 super(); 63 this.addTest(new BmpJndiTests()); 64 this.addTest(new BmpHomeIntfcTests()); 65 this.addTest(new BmpEjbHomeTests()); 66 this.addTest(new BmpEjbObjectTests()); 67 this.addTest(new BmpRemoteIntfcTests()); 68 this.addTest(new BmpHomeHandleTests()); 69 this.addTest(new BmpHandleTests()); 70 this.addTest(new BmpEjbMetaDataTests()); 71 this.addTest(new BmpAllowedOperationsTests()); 72 this.addTest(new BmpJndiEncTests()); 73 this.addTest(new BmpRmiIiopTests()); 74 75 } 76 77 public static junit.framework.Test suite() { 78 return new BmpTestSuite(); 79 } 80 81 85 protected void setUp() throws Exception { 86 Properties props = TestManager.getServer().getContextEnvironment(); 87 props.put(Context.SECURITY_PRINCIPAL, "ENTITY_TEST_CLIENT"); 88 props.put(Context.SECURITY_CREDENTIALS, "ENTITY_TEST_CLIENT"); 89 InitialContext initialContext = new InitialContext (props); 90 91 92 TestManager.getDatabase().createEntityTable(); 93 } 94 95 99 protected void tearDown() throws Exception { 100 101 TestManager.getDatabase().dropEntityTable(); 102 } 103 } 104 | Popular Tags |