Results 1 to 3 of 3

Thread: JUnit testing HTTP based services (no external container)

  1. #1

    Default JUnit testing HTTP based services (no external container)

    Hello,

    Is there a way of publishing a Spring service (HTTP) and accessing it within the context of a JUnit test without the need for a container (or at least a container that is not provided by the Spring Framework).

    I would like to be able to CVS checkout a load of code, build it with ant and then run all the JUnit tests (including those that test services) without having to deploy to a web / application server first.

    Thanks,

    Matthew

  2. #2
    Join Date
    Aug 2004
    Posts
    6

    Default Check out cargo

    Hi Matthew,
    I don't know of a way to test a web service (term used loosely) without a container but I suggest you check out cargo (http://cargo.codehaus.org/). It essentially allows you to launch a container for your tests...

    We have it hooked into our maven build system to execute SIT tests and it works very well.

    Cheers,
    Dan

    p.s. I suggest checking out the free "Better Builds with Maven" (http://www.mergere.com/m2book_download.jsp) book if you are using maven as it provides a working example...

  3. #3

    Default

    Hello Dan,

    Thanks for the reply. Will take a look.

    Cheers,

    Matthew

    (you from the U.K. too?)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •