wood burning stoves 2.0*
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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30146
    
150

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30146
    
150

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
 
Don't get me started about those stupid light bulbs.
 
subject: Junit test case for webservice consumed using weblogic
 
Similar Threads
JUNIT to test EJB
Webservice+junit+ant
Testing webservice with JUnit
Having problem when trying to run the junit to invoke a webservice
Testing Webservice