Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37310
| From | leif.roar@dimnakorr.com |
|---|---|
| Subject | Re: What is the ???standard??? when using a constant in several unit tests |
| Newsgroups | comp.lang.java.programmer |
| References | <87k21zh319.fsf@munus.decebal.nl> |
| Message-ID | <dJ6dnR1ZOa-RxQTEnZ2dnUU78d2dnZ2d@giganews.com> (permalink) |
| Date | 2017-08-20 04:36 -0500 |
Cecil Westerhof <Cecil@decebal.nl> wrote: > I have several test classes that have the following constant: > private static final String TEST_DB = "testDB.sqlite"; > > Is this the way to do it, or should it be put centrally? > Well, that depends. Are the test classes written specifically for this database, or are they written for a generic database? If it's the latter, it makes more sense to put it centrally, and if it's the latter it makes more sense to leave it in place. -- Leif Roar Moldskred
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What is the ‘standard’ when using a constant in several unit tests Cecil Westerhof <Cecil@decebal.nl> - 2017-08-19 19:37 +0200
Re: What is the ‘standard’ when using a constant in several unit tests Cecil Westerhof <Cecil@decebal.nl> - 2017-08-19 21:36 +0200
Re: What is the ‘standard’ when using a constant in several unit tests Arne Vajhøj <arne@vajhoej.dk> - 2017-08-19 20:07 -0400
Re: What is the ‘standard’ when using a constant in several unit tests Cecil Westerhof <Cecil@decebal.nl> - 2017-08-20 04:43 +0200
Re: What is the ‘standard’ when using a constant in several unit tests Arne Vajhøj <arne@vajhoej.dk> - 2017-08-19 20:03 -0400
Re: What is the ???standard??? when using a constant in several unit tests leif.roar@dimnakorr.com - 2017-08-20 04:36 -0500
Re: What is the ???standard??? when using a constant in several unit tests Cecil Westerhof <Cecil@decebal.nl> - 2017-08-20 12:21 +0200
What is the ‘standard’ when using a constant in several unit tests lewbloch@gmail.com - 2017-08-20 09:46 -0700
Re: What is the ‘standard’ when using a constant in several unit tests Arne Vajhøj <arne@vajhoej.dk> - 2017-08-20 13:12 -0400
csiph-web