aspose file tools*
The moose likes Testing and the fly likes Integration testing with Maven and HTTP Client - connection refused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Integration testing with Maven and HTTP Client - connection refused" Watch "Integration testing with Maven and HTTP Client - connection refused" New topic
Author

Integration testing with Maven and HTTP Client - connection refused

Damian Mierz
Greenhorn

Joined: Apr 15, 2009
Posts: 1
Hello,
I am still a greenhorn, so please be patient.
I have got following problem when trying to test my rest services (uploading files, downloading them, getting xml representation). Test works fine in eclipse, I use Jetty to run my server application. When I run them in Maven all freezes at:
2009-04-15 10:39:05 com.noelios.restlet.http.StreamClientHelper start
INFO: Starting the HTTP client
As you can see I use restlet for my rest implementation.
After quite long time I get:

If I set timeout for particular test, error is little different:


Only one client try to connect, during Maven freeze I can access rest services via my web browser.

Do you have any ideas what could it be? My test seemed to work earlier, now don't even if I use tomcat instead of Jetty.

Thanks for reading this and any answers.

DamianM

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integration testing with Maven and HTTP Client - connection refused