1 25 package org.objectweb.easybeans.tests.deploymentdesc; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.interceptorxml.ItfInterceptorTester02; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.interceptorxml.SFSBInterceptorTester02; 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 TestInterceptor02 { 48 49 52 private ItfInterceptorTester02 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(SFSBInterceptorTester02.class, ItfInterceptorTester02.class); 68 } 69 70 76 @Test 77 public void testInterceptorOrder01() { 78 tester.testInterceptorOrder01(); 79 } 80 81 87 @Test 88 public void testInterceptorOrder02() { 89 tester.testInterceptorOrder02(); 90 } 91 92 93 99 @Test 100 public void testPostConstruct() { 101 tester.testPostConstruct(); 102 } 103 104 110 @Test 111 public void testPreDestroy() { 112 tester.testPreDestroy(); 113 } 114 115 122 @Test 123 public void testPrePassivate() throws Exception { 124 tester.testPrePassivate(); 125 throw new Exception ("The prePassivate test is not implemented yet."); 126 } 127 128 135 @Test 136 public void testPostActivate() throws Exception { 137 tester.testPostActivate(); 138 throw new Exception ("The postActivate test is not implemented yet."); 139 } 140 } 141 | Popular Tags |