1 Reply Latest reply on Feb 13, 2009 4:14 AM by jbarrez

    test restructuring

    tom.baeyens

      in order to proceed with fixing the job executor functional tests (they fail once and a while), i will first clean up the base test class structure. The end result should look like this:

      module test-base will contain following classes:

      * JbpmTestCase (currently this is called DbTestCase)
       - base test case for our users and our own service based tests
       - only uses api
       - makes all services available based on configuration in jbpm.cfg.xml
       - contains helper methods to execute specific jobs that should have been created
       - verifies clean DB after every test and cleans up only if necessary
       * Db
       - basic DB cleaning operations


        • 1. Re: test restructuring
          jbarrez

           

          - verifies clean DB after every test and cleans up only if necessary
          * Db


          Manually cleaning the DB after each test seems very cumbersome to me... why noy using something like DBUnit to put your DB in a consistent state for every test?