Skip to content

Commit

Permalink
Add methods to manually change config values, instead of having to se…
Browse files Browse the repository at this point in the history
…t system properties.
  • Loading branch information
Richard Sartor committed Jan 22, 2016
1 parent 1e62e49 commit 6709db4
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -148,13 +148,17 @@ public static List<String> stringListFromString(String value) {
return list;
}

@VisibleForTesting
public void setProperty(String name, String val) {
props.setProperty(name, val);
}
public void setProperty(Enum<? extends ConfigDefaults> name, String value) {
setProperty(name.toString(), value);
}

@VisibleForTesting
public void clearProperty(String name) {
props.remove(name);
}
public void clearProperty(Enum<? extends ConfigDefaults> name) {
clearProperty(name.toString());
}
}

0 comments on commit 6709db4

Please sign in to comment.