1 25 package org.objectweb.easybeans.tests.sessionbean.misc; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic.ItfSessionObjectIdentity; 28 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic.SLSBSessionObjectIdentity; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 43 public class TestObjectIdentity { 44 45 48 private ItfSessionObjectIdentity bean; 49 50 54 @BeforeMethod 55 public void setup() throws Exception { 56 bean = EJBHelper.getBeanRemoteInstance(SLSBSessionObjectIdentity.class, ItfSessionObjectIdentity.class); 58 } 59 60 67 @Test 68 public void testSFSameInstanceInjected() { 69 bean.testSFSameInstanceIdentityInjected(); 70 } 71 72 80 @Test 81 public void testSFSameInstanceLookup() throws Exception { 82 bean.testSFSameInstanceIdentityLookup(); 83 } 84 85 92 @Test 93 public void testSLSameInstanceInjected() { 94 bean.testSLSameInstanceIdentityInjected(); 95 } 96 97 105 @Test 106 public void testSLSameInstanceLookup() throws Exception { 107 bean.testSLSameInstanceIdentityLookup(); 108 } 109 110 117 @Test 118 public void testSFDifferentInstanceInjected() { 119 bean.testSFDifferentInstanceIdentityInjected(); 120 } 121 122 130 @Test 131 public void testSFDifferentInstanceLookup() throws Exception { 132 bean.testSFDifferentInstanceIdentityLookup(); 133 } 134 135 142 @Test 143 public void testSLDifferentInstanceInjected() { 144 bean.testSLDifferentInstanceIdentityInjected(); 145 } 146 147 155 @Test 156 public void testSLDifferentInstanceLookup() throws Exception { 157 bean.testSLDifferentInstanceIdentityLookup(); 158 } 159 } 160 | Popular Tags |