dev@ws-test-harness.java.net

Re: service-only tests

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 01 Nov 2006 13:45:58 -0800

Fabian Ritzmann wrote:
> Hi,
>
> Here's something I'd like us to consider for future development. I've
> been looking into writing some tests that I can not really write as unit
> tests because the interfaces are so complex that I'd spend days
> implementing mock objects. They are not real end-to-end tests either
> because my tests make the service fail, i.e. there is nothing a client
> could test.
>
> An example is a service that I give an invalid WSDL on purpose. I'd like
> to have a facility to test that the service really fails with the
> correct exception.

Yes! We definitely need to be able to write negative test cases, where
the harness makes sure that the service fails to deploy, with an
expected error.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com