@Test public void testWrite(){ String first = "first"; String second = "second"; assertFalse(queriesEJB.isInDB(first)); assertFalse(queriesEJB.isInDB(second)); ejb.createTwo(first,second); assertTrue(queriesEJB.isInDB(first)); assertTrue(queriesEJB.isInDB(second)); }
public void createTwo(String first, String second){ createFooWithRequiredTransaction(first); createFooWithSupports(second); }
EJB_04_SUPPORTS { public void createTwo(String first, String second){ createFooWithRequiredTransaction(first); createFooWithSupports(second); } }
EJB_04_SUPPORTS { public void createTwo(String first, String second){ createFooWithRequiredTransaction(first); createFooWithSupports(second); }  }
EJB_04_SUPPORTS { public void createTwo(String first, String second){ createFooWithRequiredTransaction(first); createFooWithSupports(second); }  @TransactionAttribute(TransactionAttributeType.REQUIRED) void createFooWithRequiredTransaction(String name); @TransactionAttribute(TransactionAttributeType.SUPPORTS) boolean isPresentWithSupports(String name); @TransactionAttribute(TransactionAttributeType.SUPPORTS) void createFooWithSupports(String name); void createTwo(String first, String second); }
EJB_04_SUPPORTS { public void createTwo(String first, String second){ createFooWithRequiredTransaction(first); createFooWithSupports(second); }  @TransactionAttribute(TransactionAttributeType.REQUIRED) void createFooWithRequiredTransaction(String name); @TransactionAttribute(TransactionAttributeType.SUPPORTS) boolean isPresentWithSupports(String name); @TransactionAttribute(TransactionAttributeType.SUPPORTS) void createFooWithSupports(String name); void createTwo(String first, String second);  }