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

  • 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
    We use JUnit to test the service and DAO layers. You can use a ClassPathXmlApplicationContext to bootstrap the Spring container.

    Comment


    • #3
      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

      Comment

      Working...
      X