Personally, I would stay away from creating test data in any other place, except in test cases. Instead of creating test data, create data generators that allow you to quickly generate objects in each test case or in each before the block.
This has two main advantages:
- This makes reading tests easier because the developer can determine exactly which objects are being used, and
- It should significantly reduce the amount of test data that you need to manage.
, , , DBDeploy . . DBDeploy DBUnit . , .