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


Referenced by
SandBox




JSPWiki v2.2.33

[RSS]


Hide Menu

SpringControllerUnitTest


This is version 1. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


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   More info...   Attach file...
This particular version was published on 06-Nov-2006 13:52:53 MST by GaryShea.