1 45 package org.openejb.test.entity.cmp; 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 CmpTestSuite extends org.openejb.test.TestSuite{ 60 61 public CmpTestSuite(){ 62 super(); 63 this.addTest(new CmpJndiTests()); 64 this.addTest(new CmpHomeIntfcTests()); 65 this.addTest(new CmpEjbHomeTests()); 66 this.addTest(new CmpEjbObjectTests()); 67 this.addTest(new CmpRemoteIntfcTests()); 68 this.addTest(new CmpHomeHandleTests()); 69 this.addTest(new CmpHandleTests()); 70 this.addTest(new CmpEjbMetaDataTests()); 71 this.addTest(new CmpJndiEncTests()); 73 this.addTest(new CmpRmiIiopTests()); 74 75 } 76 77 public static junit.framework.Test suite() { 78 return new CmpTestSuite(); 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 |