Search in sources :

Example 21 with Simple

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());
}
Also used : Simple(org.apache.deltaspike.data.test.ee7.domain.Simple) Test(org.junit.Test) InSequence(org.jboss.arquillian.junit.InSequence)

Aggregations

Simple (org.apache.deltaspike.data.test.ee7.domain.Simple)21 InSequence (org.jboss.arquillian.junit.InSequence)18 Test (org.junit.Test)18