Menu
- General Information
- Architecture :
- Services & Processes
- CookBooks
- Deployment
- Bundled Applications
- Source Code :
- Third-Party Setup :
- Polytech Staff Area :
The usual test framework (jUnit) is not automatically suitable for testing Web Services: it allows you to test the POJO classes you've written (as annotated Java classes). This mechanism doesn't go through the full Web Service stack (e.g. SOAP marshalling, un-marshalling, exception renaming).
To go through this stack, we have to manually define a web service client which “proxify” the real web service, and then implement the test suite for this proxy.
New / Web Service Client Java Applicationinside the jUnit folderServiceNameTest naming convention.Main class into ServiceNameProxyNew / Web Service Client. http://localhost:8080/jSeduite/… )ServiceNameProxy class
ServiceNameTest project, right click on Test PackageNew / Test for Existing Class.ServiceNameProxy class, and select Finish to generate the test case.jUnit 4.x framework
TestSuite: A TestSuite is a jUnit construction which run all tests defined in an existing package. You can create a test suite by creating a New / Test Suite … and select your test package.
ServiceNameTest project root, and then choose Test.JUnit Tests Results window will pop, describing tests results