1 25 package org.objectweb.easybeans.tests.entity; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.flushoperation.ItfEntityManagerFlushTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.flushoperation.SFSBEntityManagerFlushTester; 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 TestEntityManagerFlush { 45 46 49 private ItfEntityManagerFlushTester sfsbFlushTester; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 sfsbFlushTester = EJBHelper.getBeanRemoteInstance(SFSBEntityManagerFlushTester.class, 58 ItfEntityManagerFlushTester.class); 59 sfsbFlushTester.startup(); 60 } 61 62 67 @Test 68 public void testVerifyDefaultValue() { 69 sfsbFlushTester.verifyDefaultFlushMode(); 70 } 71 72 79 @Test 80 public void testVerifyFlushAuto() { 81 sfsbFlushTester.setFlushModeAuto(); 82 } 83 84 91 @Test 92 public void testVerifyFlushCommit() { 93 sfsbFlushTester.setFlushModeCommit(); 94 } 95 } 96 | Popular Tags |