Skip to content
Browse files

Updated APE to 1.0.0.Alpha5

  • Loading branch information...
1 parent f8b0e75 commit 02eaafa862bdf3d1ca5e2bfb8f3de1ac069a8302 @bartoszmajsak bartoszmajsak committed
View
2 jpa-persistence-extension/pom.xml
@@ -17,7 +17,7 @@
<description>Examples that demonstrate how to test JPA to read and write a database using Arquillian together with Persistence Extension</description>
<properties>
- <version.arquillian_persistence>1.0.0.Alpha4</version.arquillian_persistence>
+ <version.arquillian_persistence>1.0.0.Alpha5</version.arquillian_persistence>
<version.fest_assert>1.4</version.fest_assert>
<version.commons_lang>2.5</version.commons_lang>
</properties>
View
9 jpa-persistence-extension/src/test/java/com/acme/jpa/GamePersistenceTestCase.java
@@ -10,7 +10,10 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.arquillian.junit.InSequence;
+import org.jboss.arquillian.persistence.Cleanup;
import org.jboss.arquillian.persistence.ShouldMatchDataSet;
+import org.jboss.arquillian.persistence.TestExecutionPhase;
import org.jboss.arquillian.persistence.TransactionMode;
import org.jboss.arquillian.persistence.Transactional;
import org.jboss.shrinkwrap.api.Archive;
@@ -36,7 +39,7 @@
@PersistenceContext
EntityManager em;
- @Test
+ @Test @InSequence(1)
@Transactional(TransactionMode.ROLLBACK)
public void shouldPersistsPcGames() throws Exception {
// given
@@ -59,7 +62,7 @@ public void shouldPersistsPcGames() throws Exception {
assertThat(games).hasSize(2);
}
- @Test
+ @Test @InSequence(2)
@Transactional
// COMMIT after test execution is default transaction behavior
public void shouldPersistsPcPlatformWithGames() throws Exception {
@@ -84,7 +87,7 @@ public void shouldPersistsPcPlatformWithGames() throws Exception {
baldurs);
}
- @Test
+ @Test @InSequence(3)
@ShouldMatchDataSet("datasets/pc-games.yml")
public void shouldPersistsPcGamesAndVerifiesStateAfterTestExecution()
throws Exception {
View
4 jpa-persistence-extension/src/test/resources-jbossas-7/arquillian.xml
@@ -8,13 +8,13 @@
<container qualifier="jbossas-remote-7" default="true">
<configuration>
- <property name="jbossHome">target/jboss-as-${jboss.version:7.0.2.Final}</property>
+ <property name="jbossHome">target/jboss-as-${jboss.version:7.1.1.Final}</property>
</configuration>
</container>
<extension qualifier="persistence">
<property name="defaultDataSource">java:jboss/datasources/ExampleDS</property>
- <property name="initStatement">SET REFERENTIAL_INTEGRITY FALSE</property>
+ <property name="scriptsToExecuteBeforeTest">SET REFERENTIAL_INTEGRITY FALSE;</property>
<property name="userTransactionJndi">java:jboss/UserTransaction</property>
<!-- Uncomment these properties if you want to see database content during test execution -->
<!--

0 comments on commit 02eaafa

Please sign in to comment.
Something went wrong with that request. Please try again.