0 Replies Latest reply on Jun 4, 2006 9:07 AM by Colin Goudie

    Unit Testing EJB3 Strategies

    Colin Goudie Newbie

      Hello,

      I'm looking for some feedback/pointers to start unit testing my application which makes use of EJB3 and using PostgreSQL

      I'm going to use the TestNG framework and I have that all setup and running and am now starting to setup the EJB3 standalone container.

      Is it usual to create say a reference database that contains either no tables or the correct tables for the entity beans in the application.

      Then before the test Suite is run do you populate the required tables with data and run tests off that? Would this then lead to removing/adding specific data for specific test?

      Is this what most people do when doing their unit testing?

      My questions are very generic and I'm not looking for 'right' answers just a general feel of what is the right direction to take.

      Thanks