This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Junit testing approach for webservices(SOAP) with out hitting server ?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How do we do Junit/unit testing of web services(SOAP/REST) without starting actual container
and these junit tests are the part of maven integration.

Any suggestions pleaseeee....?

Thanks & Regards
Jagadeesh G

 
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Have you considered starting an embedded Jetty or Tomcat instance?
I have used Metro in Tomcat and it works fine.
There is also Arquillian from JBoss which is supposed to enable testing in an embedded container:
http://www.jboss.org/arquillian
It does seem slightly unfinished, as of today, so I have only waited and observed so far.
Best wishes!
 
jagadeeshnaidu guthikonda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ivan Krizsan wrote:Hi!
Have you considered starting an embedded Jetty or Tomcat instance?
I have used Metro in Tomcat and it works fine.
There is also Arquillian from JBoss which is supposed to enable testing in an embedded container:
http://www.jboss.org/arquillian
It does seem slightly unfinished, as of today, so I have only waited and observed so far.
Best wishes!



Hi Ivan Krizsan ,
please share the links related to embedded jetty or tomcat inistance???


Thanks
Jagadeesh G
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
 
jagadeeshnaidu guthikonda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please post if you have any articles or links related to SOAP webservices junit testing without hitting actual server(we can use any mock server).


Thanks
Jagadeesh
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, I almost forgot!
There is the javax.xml.ws.Endpoint in the Java SE 6 API, which can help you to publish a standalone service.
This is very useful for unit testing web services.
Best wishes!
 
He does not suffer fools gladly. But this tiny ad does:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!