Arquillian Persistence Extension 1.0.0.Alpha2 Released
Since we wrote this post we didn't laze around. Check our latest announcement.
The Arquillian team is proud to announce the 1.0.0.Alpha2 release of the Arquillian Persistence Extension component!
Some of the highlights in this release
Renamed @Data
and @Expected
annotation to more meaningful @UsingDataSet
and @ShouldMatchDataSet
.
datasets
folder is now a default location for all data set files. Files specified in @UsingDataSet
and @ShouldMatchDataSet
will be first lookup in this directory. If not found search will be performed starting from root folder.
@Test @UsingDataSet("users.yml") @ShouldMatchDataSet("expected-users.yml") public void shouldChangeUserPassword() throws Exception { // given String expectedPassword = "LexLuthor"; UserAccount user = em.find(UserAccount.class, 2L);
// when user.setPassword("LexLuthor"); em.merge(user);
// then assertThat(user.getPassword()).isEqualTo(expectedPassword); }
New feature of dumping database state during test execution has been added. Following phases are covered:
- Before seed (before test execution).
- After seed (before test execution).
- Ater test.
- After clean.
This can be configured in arquillian.xml
as follows:
<extension qualifier="persistence">
<property name="dumpData">true</property>
</extension>
@Transactional
support can be now used standalone either on class or test method level.
What is Arquillian?
Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.
Release details
Component | Arquillian Persistence Extension |
---|---|
Version | 1.0.0.Alpha2 view tag |
Release date | 2011-12-03 |
Released by | Aslak Knutsen |
Compiled against |
Published artifacts org.jboss.arquillian.extension
- org.jboss.arquillian.extension » arquillian-persistence-api jar javadoc pom
- org.jboss.arquillian.extension » arquillian-persistence-impl jar javadoc pom
- org.jboss.arquillian.extension » arquillian-persistence-integration-tests jar javadoc pom
Release notes and resolved issues 8
API review
- Enhancement
- Feature Request
- Bug
Thanks to the following list of contributors: Bartosz Majsak, Aslak Knutsen