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

Junit test case for webservice consumed using weblogic

 
Ganesh Kannusamy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application is consuming a WebService using Weblogic 9.x, I want to write test cases using Junit for the webservices I consume using weblogic.
I have Eclipse integrated with weblogic and Junit for development.

Can you please share some examples or usefull links for me to start with.


Thanks,
Ganesh
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ganesh,
How do you call your web service to test it when you aren't using JUnit?
 
Ganesh Kannusamy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,

This is a new WebService and I thought of developing in a Test Driven Development approach, so I need to write test case using Junit first.

Any help in writing Junit testcases for Weblogic webservices is appreciated.


Thanks,
Ganesh
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ganesh,
If you are trying to be test driven, you are better served by not starting with "testing a webservice." Instead, unit test the logic of the web service. No remote calls needed.

Once that logic is working, you do need to test the plumbing. JUnit can call a servlet, ejb, etc - just like any other code.
 
Ganesh Kannusamy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the valuable inputs Jeanne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic