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

Comments:

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