views:

71

answers:

3

I'm getting ready to dive into testing of a RESTful service. The majority of our systems are built in Java and Eclipse, so I'm hoping to stay there.

I've already found rest-client (http://code.google.com/p/rest-client/) for doing manual and exploratory testing, but is there a stack of java classes that may make my life easier? I'm using testNG for the test platform, but would love helper libraries that can save me time.

I've found http4e (http://www.ywebb.com/) but I'd really like something FOSS.

+1  A: 

Would JMeter be an option? It has HTTP Request samplers that support all of the HTTP methods and assertions to validate the response.

Another alternative might be something like soapUI which has an API that could be integrated with your test cases, though I haven't tried it.

Rob Tanzola
Looked into JMeter. Looks interesting. SoapUI may be good for the SOAP API I'm going to have to test soon.
Zachary Spencer
SoapUI also apparently has full support for REST despite their name.
Rob Tanzola
A: 

CXF apparently has support for REST. I haven't tried the REST support yet myself, but I think CXF is a superb, flexible, standards-based webservice implementation.

Chris Dolan
CXF does way more than I'm looking for. I'm hoping for just a client.
Zachary Spencer
A: 

Apparently rest-client has a library built in. I'm using that with testNG and XStream and it seems to be exactly what the doctor ordered.

Zachary Spencer