package org.wildfly.swarm.it.transactions;

import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.Arquillian;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import org.wildfly.swarm.it.AbstractIntegrationTest;

import static org.fest.assertions.Assertions.assertThat;

/**
 * @author Bob McWhirter
 */
@RunWith(Arquillian.class)
public class TransactionsApplicationIT extends AbstractIntegrationTest {

    @Drone
    WebDriver browser;

    @Test
    public void testActive() {
        browser.navigate().to("http://localhost:8080/");
        assertThat(browser.getPageSource()).contains("Active");
    }

    @Test
    public void testBeginCommit() {
        browser.navigate().to("http://localhost:8080/begincommit");
        assertThat(browser.getPageSource()).contains("Transaction begun ok and committed ok" );
    }

    @Test
    public void testBeginRollback() {
        browser.navigate().to("http://localhost:8080/beginrollback");
        assertThat(browser.getPageSource()).contains("Transaction begun ok and rolled back ok" );
    }
}

@@ -374,16 +374,40 @@
 Whirter%0A
+ * @author Ken Finnigan%0A
  */%0A@Run
@@ -568,22 +568,28 @@
 oid test
-Active
+Transactions
 () %7B%0A   
@@ -710,60 +710,8 @@
 %22);%0A
-    %7D%0A%0A    @Test%0A    public void testBeginCommit() %7B
 %0A   
@@ -875,62 +875,8 @@
  );%0A
-    %7D%0A%0A    @Test%0A    public void testBeginRollback() %7B
 %0A   

Modify Transactions tests into a single ordered test, as ordering of separate test methods is unpredictable