Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences

Edit this page


Referenced by
SandBox




JSPWiki v2.2.33

[RSS]


Hide Menu

SpringControllerUnitTest


The purpose of this page is to demonstrate how to write a set of unit tests for PersonController.

The PersonControllerTest shown in SpringController is an integration test. That means that it does not isolate the code in PersonController from the rest of the application. In fact when PersonControllerTest runs, a connection is made to the database just as it would when running live.

This can be seen as good or bad. It's good because at some point, it's necessary to test that the controller really does work when integrated with the database. It's bad because it's slow and there are (???) later tests (the Canoo acceptance tests) that check the integration also, which means this is duplication of effort.



Go to top   Edit this page   More info...   Attach file...
This page last changed on 06-Nov-2006 13:53:00 MST by GaryShea.