Ejemplo n.º 1
0
 @Test
 public void testEJBResourceInjectionAndUpdate() {
   String something = anInterface.findSomethingDeepWithDataSource(12L);
   assertEquals("The Name", something);
   anInterface.updateSomethingInDataSource(12L, "A new Name");
   something = anInterface.findSomethingDeepWithDataSource(12L);
   assertEquals("A new Name", something);
 }
Ejemplo n.º 2
0
 @Test
 public void testEJBResourceInjection() {
   String something = ejb3ServiceInterfaceWithInject.findSomethingDeepWithDataSource(12L);
   assertEquals("The Name", something);
 }