1 25 package org.objectweb.easybeans.tests.inheritance; 26 27 import static org.testng.Assert.assertNotNull; 28 29 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessSessionContext; 30 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.inheritance.SFSBAccessResource; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.inheritance.SLSBExtAccessSessionContext; 32 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 33 import org.testng.annotations.BeforeClass; 34 import org.testng.annotations.Test; 35 36 48 public class TestInheritanceAnnotation { 49 50 53 private ItfAccessSessionContext sfsbAccessResource; 54 55 58 private ItfAccessSessionContext sfsbExtendedAccessResource; 59 60 64 @BeforeClass 65 public void setup() throws Exception { 66 sfsbAccessResource = EJBHelper.getBeanRemoteInstance(SFSBAccessResource.class, ItfAccessSessionContext.class); 68 69 sfsbExtendedAccessResource = EJBHelper.getBeanRemoteInstance(SLSBExtAccessSessionContext.class, 71 ItfAccessSessionContext.class); 72 } 73 74 81 @Test 82 public void testSessionContextInheritance00() throws Exception { 83 Object obj = sfsbAccessResource.accessSessionContext(null); 84 assertNotNull(obj); 85 } 86 87 94 @Test 95 public void testSessionContextInheritance01() throws Exception { 96 Object obj = sfsbExtendedAccessResource.accessSessionContext(null); 97 assertNotNull(obj); 98 } 99 } 100 | Popular Tags |