Browsing All Posts filed under »testing«

AbstractTransactionalJUnit4SpringContextTests MySQL data not getting rolled back?

June 18, 2010


We know that the unit tests should not be dependent on each other and hell there are not. But as soon as we switch our unit tests to use MySQL instead of HSQLDB which we use by default then it seems that hell breaks loose. The tests somehow become dependent on each other and start […]

Unit Testing Struts 1.2 with StrutsTestCase, EasyMock and Aspects

June 11, 2009


We have a legacy application and a lot of presentation code is written using Struts 1.2.4. For unit tetsing the action classes we used the following approach. StrutsTestCase provides both a Mock Object approach and a Cactus approach  to actually run the Struts ActionServlet, allowing you to test your Struts code with or without a […]

QuickTip: JUnit: The input type of the launch configuration does not exist

June 9, 2008


If you are getting the above error message in Eclipse IDE, while running your test case, just make sure that you have the test class as a part of the “eclipse source folder” definition. Easiest way. Right click on the folder –> Build Path –>Use as source folder Done.

Remote Debugging | Fitnesse with Eclipse

December 5, 2007


We use Fitnesse as the acceptance testing tool for our projects. Many a times it becomes a necessity to remotely debug how the fitnesse fixture is running through your code. This blog would try to explain how you can easily set up a remote debugging session between Fitnesse and Eclipse so that you can debug […]

DBUNIT : Extracting Test Data into XML file

July 30, 2007


Many times you need sample data to be used as the set up data for your test cases. An easy way to extract data from a database into an XML file is as follows The code sample below is mentioned for Postgres database however can be used for any database.

DBUNIT, HSQLDB, data type (16, ‘BOOLEAN’) not recognized and will be ignored. See FAQ for more information.

July 29, 2007


We are using HSQLDB ( as the in memory database for our DBUNIT (2.1) test cases. Suddenly when trying to insert from our XML datafile to a boolean field we started getting an error which said WARNING – APP_USER.ACCOUNT_EXPIRED data type (16, ‘BOOLEAN’) not recognized and will be ignored. See FAQ for more information. It […]