0

I would like to know what would be the best way to fill in memory database for testing with test data - how to manage such data, how to make simple insert scripts, what are good tools to support this ect...

Jarek
  • 7,425
  • 15
  • 62
  • 89

2 Answers2

1

One possible approach is the one taken by DbUnit, which offers classes to export and import table content to and from XML files. You can use it to (re-)load your tables with a predetermined set of test data.

rsp
  • 23,135
  • 6
  • 55
  • 69
1

I see two approaches:

  1. Generate data, with this for example
  2. Use a subset of real data, that can be extracted with this, keeping referential integrity etc
Persimmonium
  • 15,593
  • 11
  • 47
  • 78