On Tuesday, February 14, 2012 12:12:48 PM Márcio Dantas wrote:
> Hi ladies and gentlemen,
> 
> I'm writing some functional tests to a webservice we have.
> For now I just got three tests. My problem is that one test is affecting
> the others.
> 
> In the first test I expect an exception "Soap Fault - Message A" from the
> client and in the second test I expect exception "Soap Fault - Message B".
> Running one test by time, they pass. But when running them together, the
> second test fails, because the client throws the same exception as the
> first test ("Soap Fault - Message A").
> 
> Is this behaviour expected? Do I have to do some clean up when a client
> method throws an exception?

Definitely not expected unless the test service is holding some sort of state.  
    
The services are normally singletons and thus could be affected by that.

Dan


> 
> cxf.xml:
> 
> ...
> <jaxws:client name="myServicePort"
>    serviceClass="package.IMyServicePort"
>    address="http://address/"; />
> ...
> 
> 
> Cheers,
> Márcio Dantas
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to