• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

test Web Service ... help

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic