Archive for category JavaRanch
process builder to run multi-platform postgres import
April 25th, 2010 by Jeanne BoyarskyWe 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 [...]
Posted: 25 April, 2010 in Java/J2EE, JavaRanch.
Tags: Java/J2EE, postgresql, processBuilder
Comments: -
junit suite wide setup (not @BeforeClass)
April 12th, 2010 by Jeanne BoyarskyProblem 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 [...]
Posted: 12 April, 2010 in Java/J2EE, JavaRanch.
Tags: integration_test, junit, junit4
Comments: 1
clone a postgresql database for testing cleanly
March 28th, 2010 by Jeanne BoyarskyI’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. [...]
Posted: 28 March, 2010 in JavaRanch, JDBC.
Tags: Database, JDBC, jforum, postgresql
Comments: 4
