jgit/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm
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
..
AddTest.java Fixed few locale dependent pgm tests 2016-01-02 17:41:58 +01:00
ArchiveTest.java Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
BranchTest.java Merge branch 'stable-4.2' 2016-01-20 09:45:48 +09:00
CLIGitCommandTest.java Preserve backslashes within double quotes in CLIGitCommand::split() 2016-10-23 15:29:17 +09:00
CheckoutTest.java Fix remaining javadoc errors raised by doclint 2017-12-21 02:42:14 +01:00
CleanTest.java Organize imports 2016-11-14 13:25:20 -08:00
CloneTest.java Add missing @Test annotations 2016-06-01 16:06:23 -04:00
CommitAndLogTest.java Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
CommitTest.java Simplify pgm tests: allow varargs and trim output for toString() 2016-01-02 17:41:58 +01:00
ConfigTest.java Ensure LocalDiskRepositoryTestCase#setup fully uses MockSystemReader 2019-08-11 00:06:03 +02:00
DescribeTest.java Add --match option for `jgit describe` to CLI 2017-06-22 09:08:55 +02:00
FetchTest.java Implement --force option in FetchCommand and CLI fetch command 2018-03-13 02:20:29 +01:00
InitTest.java JGit CLI: allow to call git init with specific directory 2016-05-22 22:11:03 +02:00
LsFilesTest.java Add ls-files CLI command 2018-08-28 01:52:06 +02:00
LsRemoteTest.java [pgm] Add option --tags for ls-remote 2014-12-16 15:29:08 +01:00
MergeTest.java Added CLIText.fatalError(String) API for tests 2016-01-06 17:26:43 -05:00
ProxyConfigTest.java Deprecate Constants.CHARACTER_ENCODING in favor of StandardCharsets.UTF_8 2019-06-19 10:43:01 +02:00
ReflogTest.java Add missing newlines at ends of Java files 2017-07-25 10:37:21 +01:00
RemoteTest.java Add remote command to JGit CLI 2015-12-11 22:54:48 +01:00
RepoTest.java RepoTest: Open Git in try-with-resources 2016-02-05 18:17:02 +09:00
ResetTest.java Update args4j to 2.33 2017-08-30 03:07:35 +02:00
RmTest.java Fix compilation errors with args4j 2.0.23 and later 2017-08-30 03:07:35 +02:00
StatusTest.java Update args4j to 2.33 2017-08-30 03:07:35 +02:00
TagTest.java Repository: Deprecate getTags method 2018-05-22 09:40:54 +09:00
TextBuiltinTest.java Added API to TextBuiltin for piped usage. 2017-09-21 14:48:45 -04:00