1 25 package org.objectweb.easybeans.tests.entity; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.entitymanager.ItfEntityManagerQueriesTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.entitymanager.SFSBEntityManagerQueriesTester; 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 TestEntityManagerQueries { 44 45 48 private ItfEntityManagerQueriesTester sfsbQueryTester; 49 50 54 @BeforeMethod 55 public void setup() throws Exception { 56 sfsbQueryTester = EJBHelper.getBeanRemoteInstance(SFSBEntityManagerQueriesTester.class, 57 ItfEntityManagerQueriesTester.class); 58 sfsbQueryTester.startup(); 59 } 60 61 67 @Test 68 public void testCallNamedQueryEJBQL() { 69 sfsbQueryTester.callNamedQuery(); 70 } 71 72 78 @Test 79 public void testCallNamedQueryNative() { 80 sfsbQueryTester.callNamedNativeQuery(); 81 } 82 83 88 @Test 89 public void testCreateQueryEJBQL() { 90 sfsbQueryTester.callCreateQuery(); 91 } 92 93 99 @Test 100 public void testCreateQueryNative00() { 101 sfsbQueryTester.callCreateNativeQuery00(); 102 } 103 104 110 @Test 111 public void testCreateQueryNative01() { 112 sfsbQueryTester.callCreateNativeQuery01(); 113 } 114 115 121 @Test 122 public void testCreateQueryNative02() { 123 sfsbQueryTester.callCreateNativeQuery02(); 124 } 125 } 126 | Popular Tags |