You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Yee-Kang Chang <ye...@ca.ibm.com> on 2008/04/16 22:38:19 UTC

How to "stop" a service?

I'm trying to test ServiceUnavailableException (as part of vtest) -- to 
simulate that a service is unavailable and the Exception will be thrown. 
The current idea is to have a service "started", invoke some operation, 
"stop" it, and then invoke some other operation to see if a 
ServiceUnavailableException will be thrown.  Is there a way for us to 
"stop" a service in Tuscany?

Or, there's better ways for us to "test" ServiceUnavailableException?

Thank you!

Re: How to "stop" a service?

Posted by Luciano Resende <lu...@gmail.com>.
Look at the tearDown method on the contribution-multiple itest below.
This might give you some ideas.

https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java

On Wed, Apr 16, 2008 at 1:38 PM, Yee-Kang Chang <ye...@ca.ibm.com> wrote:
> I'm trying to test ServiceUnavailableException (as part of vtest) -- to
>  simulate that a service is unavailable and the Exception will be thrown.
>  The current idea is to have a service "started", invoke some operation,
>  "stop" it, and then invoke some other operation to see if a
>  ServiceUnavailableException will be thrown.  Is there a way for us to
>  "stop" a service in Tuscany?
>
>  Or, there's better ways for us to "test" ServiceUnavailableException?
>
>  Thank you!



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org