Web service is complicated, to understand web service you must know SOAP, WSDL, XML schema etc. CORBA is even more completed than Web service. Our team have many years experience of developing web services by using various libraries like Axis, XFire and Cxf .We spent nearly month to understand and practice each type of SOAP [...]
This is another post of testing series we wrote so far and it discusses how to write testing against database. We prefer writing unit test for whole kind of our services, it includes the testing against POJO, LDAP, database, content repository, email. Here the topics relate to testing in our site:
Some questions and answers of [...]
In the previous post Jackrabbit OCM and Spring, I have outlined the way of integrating between Jacckrabbit OCM (jackrabbit 1.5.0-snapshot) and Spring. The time flies help us have more JCR knowledge, jackrabbit api becomes more stable and our Engroup ECM implementation is changed. Instead of creating the total new JCR node types for our domain [...]
In the post Enhance the Unit test using Annotation approach, I outlined the approach of using annotation to reduce the redundant code and avoid the inheritance (like JUnit3). Annotation RunWith of JUnit4 is a powerful class help us to custom the approach of running unit test, we can create the class inherits from class TestRunner. [...]
1. Keep test method as simple as possible:
DRY principle (Don’t repeat yourself)
Re-use test set up across test cases: put non-trivial test data in test set up method
Clean test code as productive code