+1 from me,

And I will also write some testcases. I think we can use this procedure.

Since we are going to test both Factory and the Serializer in one go, I propose the test class name ........SerializationTest. For example for the PropertyMediatorFactory and PropertyMediatorSerializer the test case will be PropertyMediatorSerializationTest. and will be in the org.apache.synapse.config.xml package.

It is better to have a AbstractTestCase class which extends from the junit TestCae, so that we can use this AbstractTestCase to get the common stuff done like OMElement building from the xmlString and initialization of the OM camparison mechanism. Then we can extend this AbstractTestCase???

Any comments???

Ruwan.

On 11/7/06, indika kumara <[EMAIL PROTECTED]> wrote:
Hi all


I figure out that in current synapse distribution, There are no Test Cases for both Mediator Factories and MediatorSerializerers.I thinks It is better to have some Test Cases to assure functionality of those. I hope to working on creating Junit Test Cases for both Mediator Factories and MediatorSerializerers.I expect to follow ,following steps in developing Test Cases.


1 Build a OMElement form a XML Stream – Input OM

2 Build a Mediator form that Input OM using Factory

3 Serialize a Mediator and get OM - Output OM

4 Compare Input OM and Output OM


Please give your comments on this...


Thanks

Best Regards

Indika




Reply via email to