Re: Decouple SQL queries from class in OOP design



On 12 Nov 2005 22:22:01 -0800, "frebe"
<fredrik_bertilsson@xxxxxxxxxxx> wrote:

>> Test data is all in memory - not stored in any file format.
>
>I assume the test data has to survive a system restart, so in some way
>they need to be in some file format.

Typicality in FitNesse pages, or Unit test constants. Sometimes it
will be in some XML test-configuration file, or some binary image file
that gets loaded by the tests.

One of the goals of testing is to keep your test data under control at
all times. One of the keys to doing this is to keep the test data as
small and focussed as possible. Therefore, instead of having one
large test database that you run all your tests on, you have many tiny
little sets of test data.


-----
Robert C. Martin (Uncle Bob) | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc. | blog: www.butunclebob.com
The Agile Transition Experts | web: www.objectmentor.com
800-338-6716


"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo
.



Relevant Pages