JAX-RS Client Rulz v0.0.2 released

The JAX-RS client rulz project was released with a single feature--the URI can be resolved using the Java's system properties:


JAXRSClientProvider.buildWithURI([SYSTEM-PROPERTY-KEY], [DEFAULT-IF-NOT-FOUND]);

Use:

<dependency>
	<groupId>com.airhacks.rulz</groupId>
	<artifactId>jaxrsclient</artifactId>
	<version>[RECENT_VERSION]</version>
	<scope>test</scope>
</dependency>

to setup rulz for your integration tests.

Usage example:


    @Rule
    public JAXRSClientProvider provider = JAXRSClientProvider.buildWithURI("java-site","http://www.java.com");

    @Test
    public void pingJava() {
        Client client = provider.client();
        assertNotNull(client);
        WebTarget target = provider.target();
        assertNotNull(target);
    }


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


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

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