aspose file tools*
The moose likes Testing and the fly likes Junit test case for webservice consumed using weblogic 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 "Junit test case for webservice consumed using weblogic" Watch "Junit test case for webservice consumed using weblogic" New topic
Author

Junit test case for webservice consumed using weblogic

Ganesh Kannusamy
Ranch Hand

Joined: Sep 15, 2005
Posts: 35
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


Thanks,
Ganesh
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

Ganesh,
How do you call your web service to test it when you aren't using JUnit?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ganesh Kannusamy
Ranch Hand

Joined: Sep 15, 2005
Posts: 35
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

Joined: May 26, 2003
Posts: 30764
    
156

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

Joined: Sep 15, 2005
Posts: 35
Thanks for the valuable inputs Jeanne
 
Consider Paul's rocket mass heater.
 
subject: Junit test case for webservice consumed using weblogic