Search in sources :

Example 96 with InSequence

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

Example 97 with InSequence

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

Example 98 with InSequence

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

Example 99 with InSequence

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

Example 100 with InSequence

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

Aggregations

InSequence (org.jboss.arquillian.junit.InSequence)103 Test (org.junit.Test)103 Simple (org.apache.deltaspike.data.test.ee7.domain.Simple)18 ModelNode (org.jboss.dmr.ModelNode)14 URL (java.net.URL)13 ModelControllerClient (org.jboss.as.controller.client.ModelControllerClient)8 PartitionManager (org.picketlink.idm.PartitionManager)7 StringTokenizer (java.util.StringTokenizer)6 IdentityManager (org.picketlink.idm.IdentityManager)6 RouteBuilder (org.apache.camel.builder.RouteBuilder)5 House (org.apache.deltaspike.data.test.ee7.domain.House)5 HttpResponse (org.apache.http.HttpResponse)5 HttpGet (org.apache.http.client.methods.HttpGet)5 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)5 ManagementClient (org.jboss.as.arquillian.container.ManagementClient)5 EntityTest (org.jboss.as.test.integration.jpa.hibernate.EntityTest)5 User (org.picketlink.idm.model.basic.User)5 Date (java.util.Date)4 InitialContext (javax.naming.InitialContext)4 RunAsClient (org.jboss.arquillian.container.test.api.RunAsClient)4