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>
This commit is contained in:
parent
a7338dd1e5
commit
65cee6ccbf
|
@ -80,6 +80,11 @@ public void load() throws IOException, ConfigInvalidException {
|
|||
// Do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() throws IOException {
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOutdated() {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue