I guess the question is how an "end-user" of Synapse can use Maven to run unit tests for his Synapse configuration.. I guess this is a good mini-project for a Google Summer of Code :D..

Gary, if you are interested in helping us by any chance, do let us know and we would be very happy to help you. Else, you can also add a JIRA as an enhancement / nice-to have feature, so that anyone who has the bandwidth to help us out would know of this requirement

asankha

Ruwan Linton wrote:
I think this is more of an unit test (junit) problem, or am I not getting
your question correctly? (in which case please describe the requirement a
bit more)

You can find the synapse Unit tests in the synapse code base at the
svn<http://svn.apache.org/repos/asf/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/>or
in the source distribution in the downloads
section <http://synapse.apache.org/download.html> and get some understanding
on the tests. I think
SynapseCommodityServiceTest<http://svn.apache.org/repos/asf/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/n2n/SynapseCommodityServiceTest.java>will
give you a better understanding on how to do this. Even you can use
TestSuite to setup the Synapse server at the initiation of the tests.

Thanks,
Ruwan

On Wed, Jun 18, 2008 at 10:30 AM, Gary Rudolph <[EMAIL PROTECTED]>
wrote:

Any resources/links that show how to unit test Synapse (particularly with
maven)?

I saw the mock services with synapse at IBM Developers (which is fantastic
to mock out proxies), but wanted to move to running via an automated build
with maven.

An example is to launch synapse, run a unit test that uses a jax-ws client
to connect and run a test.

Thanks, Gary





--
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.com

Reply via email to