1 25 package org.objectweb.easybeans.tests.entity; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.cascadeoperation.ItfCascadeTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.cascadeoperation.SFSBCascadeTester; 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 TestCascadeOperation { 44 45 48 private ItfCascadeTester sfsbCascadeTester; 49 50 54 @BeforeMethod 55 public void setup() throws Exception { 56 sfsbCascadeTester = EJBHelper.getBeanRemoteInstance(SFSBCascadeTester.class, 57 ItfCascadeTester.class); 58 sfsbCascadeTester.startup(); 59 } 60 61 66 @Test 67 public void verifyCascadeTypeRefresh(){ 68 sfsbCascadeTester.verifyCascadeTypeRefresh(); 69 } 70 71 72 77 @Test 78 public void verifyCascadeTypeRemove(){ 79 sfsbCascadeTester.verifyCascadeTypeRemove(); 80 } 81 82 87 @Test 88 public void verifyCascadeTypeMerge(){ 89 sfsbCascadeTester.verifyCascadeTypeMerge(); 90 } 91 92 97 @Test 98 public void verifyCascadeTypePersist(){ 99 sfsbCascadeTester.verifyCascadeTypePersist(); 100 } 101 } 102 | Popular Tags |