ClaireFarell06
New Member
I would like to leverage the existing database as a source for JUnit test data. Some scenarios are quite complex and it is a hassle to set up all the objects manually.I am thinking in terms of a decorator for my existing DAO that will serialize the objects my real SQL connected DAO is returning from the database and record them to files.Something along the lines of running the JUnit testcase in record once mode and afterwards always replaying the recorded data and not going to the database.Are there frameworks for Java to ease this process or do I have to implement it myself?