1 25 package org.objectweb.easybeans.tests.deploymentdesc; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.interceptorxml.ItfInterceptorTester00; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.interceptorxml.SFSBInterceptorTester00; 29 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.ItfCallbackLoggerAccess; 30 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.SLSBCallbackLoggerAccess; 31 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 32 import org.testng.annotations.BeforeMethod; 33 import org.testng.annotations.Test; 34 35 47 public class TestInterceptor00 { 48 49 52 private ItfInterceptorTester00 tester; 53 54 57 private ItfCallbackLoggerAccess clBean; 58 59 63 @BeforeMethod 64 public void setup() throws Exception { 65 clBean = EJBHelper.getBeanRemoteInstance(SLSBCallbackLoggerAccess.class, ItfCallbackLoggerAccess.class); 66 clBean.deleteAll(); 67 tester = EJBHelper.getBeanRemoteInstance(SFSBInterceptorTester00.class, ItfInterceptorTester00.class); 68 } 69 70 76 @Test 77 public void testInterceptorOrder01() { 78 tester.testInterceptorOrder01(); 79 } 80 81 89 @Test 90 public void testInterceptorOrder02() { 91 tester.testInterceptorOrder02(); 92 } 93 94 99 @Test 100 public void testInterceptorOrder03() { 101 tester.testInterceptorOrder03(); 102 } 103 104 110 @Test 111 public void testPostConstruct() { 112 tester.testPostConstruct(); 113 } 114 115 121 @Test 122 public void testPreDestroy() { 123 tester.testPreDestroy(); 124 } 125 126 133 @Test 134 public void testPrePassivate() throws Exception { 135 tester.testPrePassivate(); 136 throw new Exception ("The prePassivate test is not implemented yet."); 137 } 138 139 146 @Test 147 public void testPostActivate() throws Exception { 148 tester.testPostActivate(); 149 throw new Exception ("The postActivate test is not implemented yet."); 150 } 151 } 152 | Popular Tags |