@Test public void testDirectCall(){ try{ ejb.createFailDirect(); fail(); }catch (EJBException e){ } }
public boolean createFailDirect() { String name = "bar"; Foo foo = new Foo(name); Foo copy = new Foo(name); em.persist(foo); em.persist(copy); return true; }
EJB_13_selfinjection { public boolean createFailDirect() { String name = "bar"; Foo foo = new Foo(name); Foo copy = new Foo(name); em.persist(foo); em.persist(copy); return true; } }
EJB_13_selfinjection { public boolean createFailDirect() { String name = "bar"; Foo foo = new Foo(name); Foo copy = new Foo(name); em.persist(foo); em.persist(copy); return true; }  }
EJB_13_selfinjection { public boolean createFailDirect() { String name = "bar"; Foo foo = new Foo(name); Foo copy = new Foo(name); em.persist(foo); em.persist(copy); return true; }  boolean createFailDirect(); @TransactionAttribute(NOT_SUPPORTED) boolean createFailIndirect(); }
EJB_13_selfinjection { public boolean createFailDirect() { String name = "bar"; Foo foo = new Foo(name); Foo copy = new Foo(name); em.persist(foo); em.persist(copy); return true; }  boolean createFailDirect(); @TransactionAttribute(NOT_SUPPORTED) boolean createFailIndirect();  }