Re: Does derby have an embedded Mode like Derby ?

From: Guy Rouillier <guyr-ml1(at)burntmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Does derby have an embedded Mode like Derby ?
Date: 2009-08-04 18:28:22
Message-ID: 4A787DC6.6000807@burntmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paul Taylor wrote:
> I am testing the code that extracts information from a read only
> database. These are UNIT tests so only interested in getting the right
> results given a particular set of data, anything else is a distraction.

I don't understand your test environment. If all your code is doing is
extracting info from a database, why would you want to have database
management embedded in your test? Simply have a test database already
configured and running, then run your JUnit tests against that existing
database. That simple approach would obviously work across all platforms.

The only reason I can see for doing DDL in a unit test would be if the
end product will be doing such DDL.

--
Guy Rouillier

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Frank Heikens 2009-08-04 18:43:37 Re: Error when assigning default value for function parameter
Previous Message Richard Yen 2009-08-04 18:12:39 CHECK constraint fails when it's not supposed to