Results 1 to 3 of 3

Thread: Unit tests

  1. #1
    Join Date
    Jan 2005
    Posts
    1

    Default Unit tests

    HI;

    I Have a j2ee application with 3 layers :

    GUI : implemented with struts
    Services : implemented with Spring components
    DAO : implemented wuth Ibatis

    Q : How realized the unit tests for the spring component and Ibatis objets ? I use Cactus for Unit tests or another tool for this architecture ?

    regards;

  2. #2

    Default

    We use JUnit to test the service and DAO layers. You can use a ClassPathXmlApplicationContext to bootstrap the Spring container.

  3. #3
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    I use the following tools:
    - DAO: JUnit + Spring Test package (from sandbox)
    - Services: JUnit + EasyMock (for mocking the DAOs)
    - Struts: Struts Testcase + EasyMock (for mocking the Services)
    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Unit Tests for data access layer
    By kuzman in forum Data
    Replies: 16
    Last Post: Oct 25th, 2007, 11:42 AM
  2. MappingLocations for Webapp and Unit tests
    By dserodio in forum Data
    Replies: 1
    Last Post: Oct 23rd, 2005, 01:53 PM
  3. Generate Unit Tests
    By schuer in forum Container
    Replies: 4
    Last Post: Oct 2nd, 2005, 11:27 AM
  4. How do you create unit tests for layered applications?
    By paul.barry in forum Architecture
    Replies: 2
    Last Post: May 6th, 2005, 08:31 AM
  5. Replies: 3
    Last Post: Aug 14th, 2004, 06:24 PM

Posting Permissions

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