Browse Source

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>
stable-5.1
Matthias Sohn 5 years ago
parent
commit
65cee6ccbf
  1. 5
      org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java

5
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java

@ -80,6 +80,11 @@ public class MockSystemReader extends SystemReader {
// Do nothing
}
@Override
public void save() throws IOException {
// Do nothing
}
@Override
public boolean isOutdated() {
return false;

Loading…
Cancel
Save