Path: csiph.com!weretis.net!feeder4.news.weretis.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 20 Aug 2017 04:36:12 -0500 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> User-Agent: tin/2.3.2-20151224 ("Glenavullen") (UNIX) (Linux/4.4.0-78-generic (x86_64)) Message-ID: Date: Sun, 20 Aug 2017 04:36:12 -0500 Lines: 16 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-RoXSsI3y+AvAvYhscY+fVv9Xnx7fzq8KQWrUSBbUTjcYsLK0OSN+vqxSyRTEuwOVD0OtK93C/v0P4Lu!6wxIK4j8EawBEqyr4NS0HEsj/SDYaDiuitW6VHg60OjSXpFjlSgrrFdJ31ndSzDCc3XHQDsXgsmJ!8Q== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1557 Xref: csiph.com comp.lang.java.programmer:37310 Cecil Westerhof 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