]> source.dussan.org Git - jgit.git/commit
Override FileBasedConfig's save method in MockConfig 69/147469/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 10 Aug 2019 21:48:42 +0000 (23:48 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 10 Aug 2019 21:57:21 +0000 (23:57 +0200)
commit65cee6ccbf0526e94f1cdb7fd06597c6ffa7c01a
tree302c09c6e72ac33c6a096e130673493bd8cd4706
parenta7338dd1e5173b081d0ec1a7f31f48ed34b07d70
Override FileBasedConfig's save method in MockConfig

This ensures we don't try to persist MockConfig using its superclasses
save() method which fails with an NPE since MockConfig has no backing
file.

Change-Id: Ifba2d24c9438bb30d3828ed31a4c131f940b45eb
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java