We have a DB, and we are following Test Driven Development. We need to write Database "Read" test cases, But the issue is how can I create random data and populate into database, I need a way (something other than SQL scripts) to set up initial data in the DB automatically. Thanks in advance.
DBUnit is very nice. Actually, its standard method of operation is to load the test data, run the tests, then delete the test data, so that each test starts from a known good database position.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, that will fit in a stocking