jgit/org.eclipse.jgit.pgm.test
Matthias Sohn c28167e103 Ensure LocalDiskRepositoryTestCase#setup fully uses MockSystemReader
FS#getFileStoreAttributes used the real userConfig and not the mocked
one. This led to test errors when running tests with Bazel since it
sandboxes tests which prevents they can write to ~/.gitconfig.

Fix this by first preparing the MockedSystemReader and the mocked config
before calling FS#getFileStoreAttributes.

Also fix ConfigTest which broke due to this change since it inherits
from LocalDiskRepositoryTestCase and calls its setup method which was
changed here. We can no longer assert by comparing plain text since FS
adds FileStoreAttributes to the mocked userConfig. Also the default
options seen by this test changed since we now use a mocked config.

Change-Id: I76bc7c94953fe979266147d3b309a68dda9d4dfe
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-08-11 00:06:03 +02:00
..
.settings Enable warning for resources not managed by try-with-resource 2018-03-03 23:58:47 +01:00
META-INF Prepare 5.1.9-SNAPSHOT builds 2019-06-05 15:23:56 +02:00
src/org/eclipse/jgit refactor: simplify collection.toArray() 2018-08-23 01:34:39 -04:00
tst/org/eclipse/jgit/pgm Ensure LocalDiskRepositoryTestCase#setup fully uses MockSystemReader 2019-08-11 00:06:03 +02:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.gitignore Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
.project Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
BUILD Tune max heap size for tests 2019-05-29 23:39:55 +02:00
about.html Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
build.properties Add missing resources from source.. in build.properties 2013-10-30 17:42:38 +01:00
org.eclipse.jgit.pgm--All-Tests (Java8) (de).launch Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
org.eclipse.jgit.pgm--All-Tests (Java8).launch Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
org.eclipse.jgit.pgm--All-Tests.launch Add the other test launchers as favorites 2013-06-16 23:33:29 +02:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Prepare 5.1.9-SNAPSHOT builds 2019-06-05 15:23:56 +02:00