Arquillian REST 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 REST Extension component!

Support for Jersey as Rest-Client implementation

If you want to use Jersey as the backing framework for Rest-Client you can include the new artifact arquillian-rest-client-impl-jersey

<dependency>
  <groupId>org.jboss.arquillian.extension</groupId>
  <artifactId>arquillian-rest-client-impl-jersey</artifactId>
  <version>1.0.0.Alpha3</version>
</dependency>

Additional you need to add the dependencies on the Jersey version you would like to use.

Support for injection of WebTarget in @Test

@Test
public void banCustomerRaw(@ArquillianResteasyResource WebTarget webTarget)
{
  final Customer result = webTarget.path("/customer/1")
                           .request()
                           .post(null)
                           .readEntity(Customer.class);
}

The WebTarget will be pre initialized with the web application base URL.

Support for @Header and @Headers on @Test

@Test
@Header(name = "Authorization", value = "abc")
@Consumes(MediaType.APPLICATION_JSON)
public void banCustomer(@ArquillianResteasyResource CustomerResource customerResource)
{ .. }

This will simply set the Authorization header on the @WebTarget or proxy used when executing this request.

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 REST Extension
Version 1.0.0.Alpha3 view tag
Release date 2014-07-01
Released by Aslak Knutsen
Compiled against

Published artifacts org.jboss.arquillian.extension

  • org.jboss.arquillian.extension » arquillian-rest-client-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-client-test-app jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-client-impl-base jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-client-impl-2x jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-client-impl-3x jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-client-impl-jaxrs-2 jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-client-impl-jersey jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-api jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-spi jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-impl-base jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-impl-resteasy jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-impl-jersey jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-impl-cxf jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-impl-jaxrs-2.0 jar javadoc pom
  • org.jboss.arquillian.extension » arquillian-rest-warp-bom pom

Release notes and resolved issues 1

Jersey support

Feature Request

Thanks to the following list of contributors: Bernard Labno, Aslak Knutsen