Arquillian Persistence Extension 1.0.0.Alpha3 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.Alpha3 release of the Arquillian Persistence Extension component!

Some of the highlights in this release

Support for JSON. If you prefer this well known format over YAML/EXCEL/XML, you can now define your data sets in JSON too!

users.json
{
    "useraccount":
    [
        {
            "id" : 1,
            "firstname" : "John",
            "lastname" : "Smith",
            "username" : "doovde",
            "password" : "password"
        },
        {
            "id" : 2,
            "firstname" : "Clark",
            "lastname" : "Kent",
            "username" : "superman",
            "password" : "kryptonite"
        }
    ]
}

Introduced ability to seed database using plain SQL scripts.

@Test
@UsingScript("users.sql")
@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 – Apache POI exclusion. If you are not using excel based data sets you can exclude
Apache POI archive in arquillian.xml file. This will reduce deployment size quite significantly.

arquillian.xml
<extension qualifier="persistence">
    <property name="excludePoi">true</property>
</extension>

Fixed WAR and EAR packaging.

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.Alpha3 view tag
Release date 2011-12-30
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 6

Enhancement
  • ARQ-693 - Custom SQL statements / scripts to be run before and after test execution
Feature Request
  • ARQ-694 - Seeding database using SQL scripts
  • ARQ-695 - Investigate possibility of excluding Apache POI library
  • ARQ-711 - Add support for JSON data sets
Bug
  • ARQ-685 - Failing to locate datasets when deploying as WAR archive.

Thanks to the following list of contributors: Bartosz Majsak, Aslak Knutsen

ShrinkWrap Resolver 1.1.0-alpha-2 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.1.0-alpha-2 release of the ShrinkWrap Resolver component!

What is ShrinkWrap Resolver?

The ShrinkWrap Resolvers project provides a Java API to obtain artifacts from a repository system. This is handy to include third party libraries available in any Maven repository in your test archive. ShrinkWrap Resolvers additionally allow you to reuse all the configuration you've already specified in the Maven build file, making packaging of an application archive much easier job.

Release details

Component ShrinkWrap Resolver
Version 1.1.0-alpha-2 view tag
Release date 2011-12-21
Released by Andrew Lee Rubinger
Compiled against
  • JUnit – 4.8.2

Published artifacts org.jboss.shrinkwrap.resolver

  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-bom pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-depchain pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver.test » shrinkwrap-resolver-impl-maven-test-jar-sample jar javadoc pom
  • org.jboss.shrinkwrap.resolver.test » shrinkwrap-resolver-impl-maven-test-ear-sample-test jar javadoc pom

Release notes and resolved issues 0

Thanks to the following list of contributors: Andrew Lee Rubinger

ShrinkWrap Descriptors 1.2.0-alpha-2 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.2.0-alpha-2 release of the ShrinkWrap Descriptors component!

What is ShrinkWrap Descriptors?

The Shrinkwrap Descriptor project provides an uniformed fluent API for creating and modifying Java EE deployment descriptors on the fly. Starting from the very early JEE 1.3 to the brand new Java EE 7 version, the descriptor project includes almost all official deployment descriptors. Several vendor specific deployment descriptors, mostly JBoss related, are covered as well.

Release details

Component ShrinkWrap Descriptors
Version 1.2.0-alpha-2 view tag
Release date 2011-12-21
Released by Andrew Lee Rubinger
Compiled against
  • JUnit – 4.8.1

Published artifacts org.jboss.shrinkwrap.descriptors

  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-base jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-javaee jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-jboss jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-bom pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-depchain pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-gen jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-base jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-javaee jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-jboss jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-spi jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-test jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-test-util jar javadoc pom

Release notes and resolved issues 7

Feature Request
Bug
  • SHRINKDESC-51 - Using unescaped special query characters when doing a node query with text causes errors
Task
Sub-task
  • SHRINKDESC-90 - Extend test coverage of importers/exporters for SPI module

Thanks to the following list of contributors: Andrew Lee Rubinger, Bartosz Majsak, Ralf Battenfeld, Michal Huniewicz

ShrinkWrap 1.0.0-cr-2 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-cr-2 release of the ShrinkWrap component!

What is ShrinkWrap?

ShrinkWrap is the simplest way to create archives in Java. Using the fluent and intuitive ShrinkWrap API, developers may assemble JARs, WARs, and EARs to be deployed directly by Arquillian during testing.

Release details

Component ShrinkWrap
Version 1.0.0-cr-2 view tag
Release date 2011-12-15
Released by Andrew Lee Rubinger
Compiled against
  • JUnit – 4.8.2

Published artifacts org.jboss.shrinkwrap

  • org.jboss.shrinkwrap » shrinkwrap-api jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-bom pom
  • org.jboss.shrinkwrap » shrinkwrap-depchain pom
  • org.jboss.shrinkwrap » shrinkwrap-impl-base jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-spi jar javadoc pom

Release notes and resolved issues 8

Feature Request
Bug
  • SHRINKWRAP-351 - Build is Broken Due to Cyclic Dependency During Checkstyle
  • SHRINKWRAP-352 - m2e is showing errors on unsupported Checkstyle Plugin
Task

Thanks to the following list of contributors: Andrew Lee Rubinger, Karel Piwko

Arquillian Core 1.0.0.CR7 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.CR7 release of the Arquillian Core component!

Some of the highlights in this release

  • Configure Arquillian using properties – Adding -Dproperty.name=value to the command line can now add or override values defined in arquillian.xml.
arq.container.[qualifier].mode
arq.container.[qualifier].default
arq.container.[qualifier].configuration.[property_name]
arq.container.[qualifier].protocol.[type].[property_name]

arq.group.[qualifier].default
arq.group.[qualifier].container.[qualifier].configuration.[property_name]
arq.group.[qualifier].container.[qualifier].protocol.[type].[property_name]

arq.extension.[qualifier].[property_name]

arq.defaultprotocol.[type]
arq.defaultprotocol.[type].[property_name]

arq.engine.[property_name]

Example:

-Darq.container.production.configuration.jbossHome=/opt/jbossas/

You can add these in a properties file as well. Default Arquillian will look for a file called arquillian.properties on classpath or on disk, same with arquillian.xml. If you want to configure a different filename, you can use either -Darquillian.properties=name or -Darquillian.xml=name

Since the xml file is read first, the properties will add / override the xml values. In the case where you have a container defined as default in xml, but want to override the default in properties, you can add -Darquillian.launch to specify which container/group configuration to use.

  • @OperateOnDeployment on @ArquillianResource injection points
URL, InitialContext and Context on the client side can be qualified with the @OperateOnDeployment annotation.

@Deployment(name = "X")
public WebArchive appX() { ... }

@Deployment(name = "Y")
public WebArchive appX() { ... }

@Test @OperateOnDeployment("X")
public void shouldBeInjected(
      @ArquillianResource URL appXUrl,
      @ArquillianResource @OperateOnDeployment("Y") URL appYUrl)
{
  // ...
}

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 Core
Version 1.0.0.CR7 view tag
Release date 2011-12-15
Released by Aslak Knutsen
Compiled against

Published artifacts org.jboss.arquillian.core

  • org.jboss.arquillian.core » arquillian-core-api jar javadoc pom
  • org.jboss.arquillian.core » arquillian-core-spi jar javadoc pom
  • org.jboss.arquillian.core » arquillian-core-impl-base jar javadoc pom
  • org.jboss.arquillian.config » arquillian-config-api jar javadoc pom
  • org.jboss.arquillian.config » arquillian-config-spi jar javadoc pom
  • org.jboss.arquillian.config » arquillian-config-impl-base jar javadoc pom
  • org.jboss.arquillian.test » arquillian-test-api jar javadoc pom
  • org.jboss.arquillian.test » arquillian-test-spi jar javadoc pom
  • org.jboss.arquillian.test » arquillian-test-impl-base jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-spi jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-impl-base jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-test-api jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-test-spi jar javadoc pom
  • org.jboss.arquillian.container » arquillian-container-test-impl-base jar javadoc pom
  • org.jboss.arquillian.junit » arquillian-junit-core jar javadoc pom
  • org.jboss.arquillian.junit » arquillian-junit-standalone jar javadoc pom
  • org.jboss.arquillian.junit » arquillian-junit-container jar javadoc pom
  • org.jboss.arquillian.testng » arquillian-testng-core jar javadoc pom
  • org.jboss.arquillian.testng » arquillian-testng-standalone jar javadoc pom
  • org.jboss.arquillian.testng » arquillian-testng-container jar javadoc pom
  • org.jboss.arquillian.testenricher » arquillian-testenricher-cdi jar javadoc pom
  • org.jboss.arquillian.testenricher » arquillian-testenricher-ejb jar javadoc pom
  • org.jboss.arquillian.testenricher » arquillian-testenricher-resource jar javadoc pom
  • org.jboss.arquillian.testenricher » arquillian-testenricher-initialcontext jar javadoc pom
  • org.jboss.arquillian.protocol » arquillian-protocol-servlet jar javadoc pom
  • org.jboss.arquillian.protocol » arquillian-protocol-jmx jar javadoc pom
  • org.jboss.arquillian » arquillian-bom pom

Release notes and resolved issues 8

Feature Request
  • ARQ-284 - Configuration options should be loadable from multiple sources
  • ARQ-533 - Support Qualifiers on @ArquillianResource in ResourceProvider's SPI
  • ARQ-645 - @ArquillianResource @OperatesOnDeployment("foo") URL; for multiple containers
  • ARQ-677 - Expose Deployment as part of TestDeployment so SPIs can access more information, e.g. Container
  • ARQ-692 - Update to jboss-parent:8 Contains 1.5/1.6 source level IDE issue
Bug
  • ARQ-678 - ExceptionProxy - java.lang.NoClassDefFoundError: org/jboss/util/id/SerialVersion
  • ARQ-699 - @ArquillianResource Deployer gets injected only for the first test when using manual deployment/container modes

Thanks to the following list of contributors: Aslak Knutsen