1 25 package org.objectweb.easybeans.tests.ejb2view; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejb2view.ItfCMTEjb2ViewClient; 28 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejb2view.SLSBCMTEjb2ViewClient; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 44 public class TestCMTExceptions { 45 46 49 private ItfCMTEjb2ViewClient bean; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 bean = EJBHelper.getBeanRemoteInstance(SLSBCMTEjb2ViewClient.class, ItfCMTEjb2ViewClient.class); 59 } 60 61 70 @Test 71 public void verifyMandatoryLocalException() throws Exception { 72 bean.testLocalMandatoryException(); 73 } 74 75 84 @Test 85 public void verifyMandatoryRemoteException() throws Exception { 86 bean.testRemoteMandatoryException(); 87 } 88 89 98 @Test 99 public void verifyNeverLocalException() throws Exception { 100 bean.testLocalNeverException(); 101 } 102 103 112 @Test 113 public void verifyNeverRemoteException() throws Exception { 114 bean.testRemoteNeverException(); 115 } 116 117 123 @Test 124 public void testIdentity() throws Exception { 125 bean.testIdentity(); 126 } 127 } 128 | Popular Tags |