wood burning stoves 2.0*
The moose likes Web Services and the fly likes junit and web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "junit and web services" Watch "junit and web services" New topic
Author

junit and web services

Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
Hi All,

I am developing a web service. I am wondering if i want to write Junit test cases for my service then whether i need to generate client and test web service methods or i can directly test web service methods by using instannce of impl class.

which one is right approach.

Regards,
Gaurav


Regards,
Gaurav
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Kumar Gaurav wrote:

which one is right approach.



What do you want to test?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
i want to test web service method.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Kumar Gaurav wrote:i want to test web service method.


Then you need not test using client. If you want to test webservice-call, generate client and then do JUnit.
 
Don't get me started about those stupid light bulbs.
 
subject: junit and web services
 
Similar Threads
How to write JUnit for Void method
Webservice and JUnit
junit problem
struts test case problem
JUnit Testing