Hi Andreas
Thanks Lots for the patch . Building proxy service is happened during
deployment time . Therefore , we have to setup a simple Test Case that only
do initializing synapse . For this , you can use
'SynapseCommodityServiceTest' test , just set the location of the
synapse.xml as a system property and then use an axis.xml that has synapse
module engage as a global modules . Then , just building axis configuration
context form
ConfigurationContextFactory.createConfigurationContextFromFileSystem("repository","location
of axis2.xml");
This will initialize the synapse .
Thanks Lots
Indika
On Dec 19, 2007 4:12 AM, Andreas Veithen <[EMAIL PROTECTED]> wrote:
>
>
> I attached a patch to the JIRA issue. I was wondering how to write a
> useful unit test for this piece of code. The test would have to
> trigger the execution of ProxyService#buildAxisService. So, basically
> the test would have to load an appropriate configuration and
> initialize Synapse with this configuration. As far as I can see, the
> code that does the initialization is contained in ServerManager#start,
> but this method is not very unit test friendly. Are there any existing
> unit tests that do something like that? I had a look at
> SynapseCommodityServiceTest, but this looks a bit obscure to me... Any
> suggestions?
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>