use of org.apache.deltaspike.data.test.ee7.domain.Simple in project deltaspike by apache.
the class JtaTransactionalRepositoryAbstractTest method should_save_when_tx_scoped_bean_is_found.
@Test
@InSequence(11)
public void should_save_when_tx_scoped_bean_is_found() throws Exception {
// when
Simple simple = simpleClientTx.createSimple("transaction scoped");
Simple found = repository.findOptionalByName("transaction scoped");
// then
assertNotNull(simple);
assertNotNull(found);
assertEquals("transaction scoped", found.getName());
}
Aggregations