Mercurial > hg4j
diff test/org/tmatesoft/hg/test/Configuration.java @ 388:b015f3918120
Work on FIXME: correct HgDataFile#workingCopy with tests; BasicSessionContext with property override; platform-specific options to internals
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 15 Feb 2012 22:57:56 +0100 |
parents | 7af843ecc378 |
children | fedc54356091 |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/Configuration.java Mon Feb 13 15:11:27 2012 +0100 +++ b/test/org/tmatesoft/hg/test/Configuration.java Wed Feb 15 22:57:56 2012 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 TMate Software Ltd + * Copyright (c) 2011-2012 TMate Software Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -92,6 +92,9 @@ return rv; } + /** + * @return temporary directory to use in tests, may be configured from outside + */ public File getTempDir() { if (tempDir == null) { String td = System.getProperty("hg4j.tests.tmpdir", System.getProperty("java.io.tmpdir")); @@ -100,6 +103,9 @@ return tempDir; } + /** + * @return location with various files used in tests + */ public File getTestDataDir() { if (testDataDir == null) { testDataDir = new File(System.getProperty("user.dir"), "test-data");