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);
}
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());
}
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());
}
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());
}
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());
}
Aggregations