@Test public void testSameTransaction(){ String first = "first"; String second = "second"; assertFalse(queriesEJB.isInDB(first)); assertFalse(queriesEJB.isInDB(second)); caller.exe(false, first, second); assertFalse(queriesEJB.isInDB(first)); assertFalse(queriesEJB.isInDB(second)); }
public void exe(boolean inNewTransaction, String first, String second){ base.add(first); if(inNewTransaction){ base.addInNewTransaction(second); } else { base.add(second); } if(! base.isPresentByCheckingOnNewTransaction(second)){ ctx.setRollbackOnly(); } }
EJB_10_multi_caller { public void exe(boolean inNewTransaction, String first, String second){ base.add(first); if(inNewTransaction){ base.addInNewTransaction(second); } else { base.add(second); } if(! base.isPresentByCheckingOnNewTransaction(second)){ ctx.setRollbackOnly(); } } }
EJB_10_multi_caller { public void exe(boolean inNewTransaction, String first, String second){ base.add(first); if(inNewTransaction){ base.addInNewTransaction(second); } else { base.add(second); } if(! base.isPresentByCheckingOnNewTransaction(second)){ ctx.setRollbackOnly(); } }  }
EJB_10_multi_caller { public void exe(boolean inNewTransaction, String first, String second){ base.add(first); if(inNewTransaction){ base.addInNewTransaction(second); } else { base.add(second); } if(! base.isPresentByCheckingOnNewTransaction(second)){ ctx.setRollbackOnly(); } }  void exe(boolean inNewTransaction, String first, String second); }
EJB_10_multi_caller { public void exe(boolean inNewTransaction, String first, String second){ base.add(first); if(inNewTransaction){ base.addInNewTransaction(second); } else { base.add(second); } if(! base.isPresentByCheckingOnNewTransaction(second)){ ctx.setRollbackOnly(); } }  void exe(boolean inNewTransaction, String first, String second);  }