Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

junit and web services

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kumar Gaurav wrote:

which one is right approach.



What do you want to test?
 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to test web service method.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic