cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aristedes Maniatis <...@maniatis.org>
Subject Re: Populating a test DB for use with Cayenne
Date Wed, 16 Mar 2016 12:59:05 GMT
On 16/03/2016 9:31pm, Hugi Thordarson wrote:
> Hi all.
> 
> Just out of curiosity; how are you guys populating your test DBs before running tests?
Has anyone written something brilliant to do it with e.g. .yml-files (via Cayenne)? Are you
doing it via SQL-scripts? In code perhaps?
> 
> I’m currently creating my test DBs in code (using Cayenne) and it becomes cumbersome
when they reach a certain size :).

http://dbunit.sourceforge.net/ will do the trick for you. That combined with Derby's in-memory
mode.

Ari




-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Mime
View raw message