This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes test Web Service ... help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "test Web Service ... help" Watch "test Web Service ... help" New topic
Author

test Web Service ... help

Mirela Muntean
Greenhorn

Joined: Aug 17, 2007
Posts: 13
hello,

I have to test some Web Services made with CXF. I want to test them with JUnit, but I cannot find what class my unit has to extend. I know that for regular tests, the TestCase class is the base class, but in the web service context, I think another class has to be extended;
For example, if the the XFire whould have been used to work with WS, then the AbstractXFireAegisTest has to be the base class.
I've searched the net, but really cannot find an example of JUnit for CXF Web Services.
Could anyone help me ?

Thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
One of the advantages of web services is that the client is independent of the service implementation. So for testing the client-soide it shouldn't matter server-side framework is used. Extending TestCase should work fine; just stick your client-side code in one of the testXYZ methods.


Ping & DNS - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: test Web Service ... help