clone a postgresql database for testing cleanly

Main menu:

Topics

Recent Posts

Blog

 

February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829  

Past Posts

Java/J2EE

JDBC

Other

Archive for category JavaRanch

process builder to run multi-platform postgres import

April 25th, 2010 by Jeanne Boyarsky

We saw how to clone a postgresql database for testing cleanly in an earlier blog post. The next step is to do so from Java so it can be part of an integration test. How to run each of 4 DDLs: Running a DDL file is easy which is good since we have four of [...]

junit suite wide setup (not @BeforeClass)

April 12th, 2010 by Jeanne Boyarsky

Problem How do I run setup/teardown for my whole suite, not just one class/test? Impact of Problem JUnit offers @Before to run a method before each test and @BeforeClass to run a method once before a class.  For a small suite, @BeforeClass may be enough.  For a large integration test suite, setting up the database [...]

clone a postgresql database for testing cleanly

March 28th, 2010 by Jeanne Boyarsky

I’m looking at writing integration tests for the back end of JavaRanch‘s JForum install. A few “pesky” requirements/constraints Multiple developers all over the word have their own local test databases filled with data in different states.  The tests must work for everyone.  Ideally they won’t leave data floating around either. The tests must use PostgreSQL.  [...]


Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 459123808 bytes) in Unknown on line 0