@Test public void testAddAndThrowRuntimeExceptionNoRollback() throws Exception { String name = "Bar"; assertFalse(queriesEJB.isInDB(name)); try { ejb.addAndThrowRuntimeExceptionNoRollback(name); fail(); } catch (RuntimeException e){ } assertTrue(queriesEJB.isInDB(name)); }
public void addAndThrowRuntimeExceptionNoRollback(String name){ Foo foo = new Foo(name); em.persist(foo); throw new NoRollbackRuntimeException("Should not roll back"); }
EJB_11_exceptions { public void addAndThrowRuntimeExceptionNoRollback(String name){ Foo foo = new Foo(name); em.persist(foo); throw new NoRollbackRuntimeException("Should not roll back"); } }
EJB_11_exceptions { public void addAndThrowRuntimeExceptionNoRollback(String name){ Foo foo = new Foo(name); em.persist(foo); throw new NoRollbackRuntimeException("Should not roll back"); }  }
EJB_11_exceptions { public void addAndThrowRuntimeExceptionNoRollback(String name){ Foo foo = new Foo(name); em.persist(foo); throw new NoRollbackRuntimeException("Should not roll back"); }  void addAndThrowRuntimeException(String name); void addAndThrowException(String name); void addAndThrowRuntimeExceptionNoRollback(String name); void addAndThrowExceptionWithRollback(String name); }
EJB_11_exceptions { public void addAndThrowRuntimeExceptionNoRollback(String name){ Foo foo = new Foo(name); em.persist(foo); throw new NoRollbackRuntimeException("Should not roll back"); }  void addAndThrowRuntimeException(String name); void addAndThrowException(String name); void addAndThrowRuntimeExceptionNoRollback(String name); void addAndThrowExceptionWithRollback(String name);  }