This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Exporting database content for testing

1 reply
edmondo1984
Joined: 2011-09-14,
User offline. Last seen 28 weeks 3 days ago.
Dear all,
I have to perform some integration testing in an hibernate application in Scala and I would like to discuss with you if you had similar use cases.
I am wondering if any of you has ever "mocked" a database with some initial data, or if there is a smart way to do that (something like YAML used in PLAY)? I have about 1000 entities and it is too complicated to write the correspondent YAML, what I would like is basically being able to export data from an existing database or hibernate application into a format which can be injected into another database. (For example, an in memory hsqldb )
Thank you very much
Edmondo

ido
Joined: 2011-05-02,
User offline. Last seen 42 years 45 weeks ago.
Re: Exporting database content for testing

http://jailer.sourceforge.net/

It can subset production databases.

HTH,
ido

On Jan 30, 10:14 am, Edmondo Porcu wrote:
> Dear all,
>
> I have to perform some integration testing in an hibernate application in
> Scala and I would like to discuss with you if you had similar use cases.
>
> I am wondering if any of you has ever "mocked" a database with some initial
> data, or if there is a smart way to do that (something like YAML used in
> PLAY)? I have about 1000 entities and it is too complicated to write the
> correspondent YAML, what I would like is basically being able to export
> data from an existing database or hibernate application into a format which
> can be injected into another database. (For example, an in memory hsqldb )
>
> Thank you very much
>
> Edmondo

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland