Announcement Announcement Module
Collapse
No announcement yet.
Testing Services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Testing Services

    What is the recommended way to test Domain level Classes in a Servlet, which are used as main Entrypoints for Service Facades (Hessian, Axis)?
    Is it necessary to bother with for example Cactus?

  • #2
    There are very few situations in which I would use Cactus.

    I would go for the following types of testing for your objects:

    1. True unit testing. Does not involve any container. Just JUnit, with mock objects or stubs.

    2. Integration testing in a Spring container but not in a web container. This is fast, and skips the deployment step. See the superclasses in the org.springframework.test package in the mock JAR shipped with Spring. You can even have the superclasses create and rollback transactions if you like. With appropriate design, you can use virtually the same Spring XML config as in the deployed app.

    3. Test your remote entry points remotely, against a deployed app, using a remote client.

    Rgds
    Rod

    Comment


    • #3
      2. was the missing link for me.
      Just Tried it out. Really Cool.
      This makes "easy" to test the domain layer independently of any appserver and/or webcontainer.
      Thanx.
      Christoph

      Comment

      Working...
      X