Search in sources :

Example 11 with Simple

use of org.apache.deltaspike.data.test.ee7.domain.Simple in project deltaspike by apache.

the class JtaTransactionalRepositoryAbstractTest method tx_scoped_bean_should_be_empty_after_tx.

@Test
@InSequence(12)
public void tx_scoped_bean_should_be_empty_after_tx() throws Exception {
    // when
    Simple simple = simpleClientTx.getSimple();
    // then
    assertNull(simple);
}
Also used : Simple(org.apache.deltaspike.data.test.ee7.domain.Simple) Test(org.junit.Test) InSequence(org.jboss.arquillian.junit.InSequence)

Example 12 with Simple

use of org.apache.deltaspike.data.test.ee7.domain.Simple in project deltaspike by apache.

the class JtaTransactionalRepositoryInterfaceTest method should_find_with_lockmode_in_transaction.

@Test
@InSequence(3)
public void should_find_with_lockmode_in_transaction() throws Exception {
    // when
    Simple simple = repository.findByName(NAME);
    // then
    assertNotNull(simple);
    assertTrue(wrapper.isRunInTx());
}
Also used : Simple(org.apache.deltaspike.data.test.ee7.domain.Simple) Test(org.junit.Test) InSequence(org.jboss.arquillian.junit.InSequence)

Example 13 with Simple

use of org.apache.deltaspike.data.test.ee7.domain.Simple in project deltaspike by apache.

the class JtaTransactionalRepositoryInterfaceTest method should_find_no_lock_without_transaction.

@Test
@InSequence(4)
public void should_find_no_lock_without_transaction() throws Exception {
    // when
    Simple simple = repository.findByNameNoLock(NAME);
    // then
    assertNotNull(simple);
    assertTrue(wrapper.isRunInNonTx());
}
Also used : Simple(org.apache.deltaspike.data.test.ee7.domain.Simple) Test(org.junit.Test) InSequence(org.jboss.arquillian.junit.InSequence)

Example 14 with Simple

use of org.apache.deltaspike.data.test.ee7.domain.Simple in project deltaspike by apache.

the class DeltaSpikeTransactionalRepositoryAbstractTest method should_find_with_lockmode_in_transaction.

@Test
@InSequence(3)
public void should_find_with_lockmode_in_transaction() throws Exception {
    // when
    Simple simple = repository.findByName(NAME);
    // then
    assertNotNull(simple);
    assertTrue(wrapper.isRunInTx());
}
Also used : Simple(org.apache.deltaspike.data.test.ee7.domain.Simple) Test(org.junit.Test) InSequence(org.jboss.arquillian.junit.InSequence)

Example 15 with Simple

use of org.apache.deltaspike.data.test.ee7.domain.Simple in project deltaspike by apache.

the class DeltaSpikeTransactionalRepositoryInterfaceTest method should_find_with_lockmode_in_transaction.

@Test
@InSequence(3)
public void should_find_with_lockmode_in_transaction() throws Exception {
    // when
    Simple simple = repository.findByName(NAME);
    // then
    assertNotNull(simple);
    assertTrue(wrapper.isRunInTx());
}
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