سؤال

I am implementing an application that tests web services, and I am wondering if it is worthy to use spring testing.

In my application I call web services and test if the results returned match with the ones expected, so I don't need to inject any DAO.

Did I miss any other benefits ?

هل كانت مفيدة؟

المحلول

If you test an external webservice, you don't need spring. You even don't need java as you might as well write good tests with soapUI.

Anyhow, if you're testing your own webservice classes, you probably have to mock some services at testing time, and therefore spring testing might help alot.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top