use of org.jboss.arquillian.junit.InSequence in project deltaspike by apache.
the class DeltaSpikeTransactionalRepositoryInterfaceTest method should_save_in_transaction.
@Test
@InSequence(2)
public void should_save_in_transaction() throws Exception {
// given
Simple simple = new Simple(NAME);
// when
simple = repository.save(simple);
// then
assertNotNull(simple.getId());
assertTrue(wrapper.isRunInTx());
}
use of org.jboss.arquillian.junit.InSequence in project deltaspike by apache.
the class JtaTransactionalRepositoryAbstractTest method dep_scoped_bean_should_be_empty_before_tx.
@Test
@InSequence(30)
public void dep_scoped_bean_should_be_empty_before_tx() throws Exception {
// when
Simple simple = simpleClientDep.getSimple();
// then
assertNull(simple);
}
use of org.jboss.arquillian.junit.InSequence in project deltaspike by apache.
the class JtaTransactionalRepositoryAbstractTest method tx_scoped_bean_should_be_empty_before_tx.
@Test
@InSequence(10)
public void tx_scoped_bean_should_be_empty_before_tx() throws Exception {
// when
Simple simple = simpleClientTx.getSimple();
// then
assertNull(simple);
}
use of org.jboss.arquillian.junit.InSequence in project deltaspike by apache.
the class JtaTransactionalRepositoryAbstractTest method app_scoped_bean_should_be_empty_before_tx.
@Test
@InSequence(20)
public void app_scoped_bean_should_be_empty_before_tx() throws Exception {
// when
Simple simple = simpleClientApp.getSimple();
// then
assertNull(simple);
}
use of org.jboss.arquillian.junit.InSequence in project deltaspike by apache.
the class JtaTransactionalRepositoryAbstractTest method app_scoped_bean_should_not_be_empty_after_tx.
@Test
@InSequence(22)
public void app_scoped_bean_should_not_be_empty_after_tx() throws Exception {
// when
Simple simple = simpleClientApp.getSimple();
// then
assertNotNull(simple);
}
Aggregations