Rulz: JAX-RS 2.0 Client Provider for System Tests Released

JUnit Rule for convenient initialization of JAX-RS 2.0 Client in system tests released (

public class JAXRSClientProviderTest {
    public JAXRSClientProvider provider = JAXRSClientProvider.buildWithURI("");
    public void pingJava() {
        Client client = provider.client();
        WebTarget target =;
        Response response = target.request(MediaType.TEXT_HTML).get();
        assertThat(response.getStatus(), is(200));


The required test dependency can be easily declared with Maven:


See also the EntityManager provider rule.

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting

Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition the podcast:

Stay in touch:


Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments