@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); }
@Test public void testEJBResourceInjection() { String something = ejb3ServiceInterfaceWithInject.findSomethingDeepWithDataSource(12L); assertEquals("The Name", something); }