added ability to remove a property (for test cases)

Former-commit-id: 68d7bca4bcbc7241f3f31e669dcae78ac62319bb
This commit is contained in:
Jeremy Long
2013-08-29 16:56:00 -04:00
parent 7e15a1aa5d
commit 7143d2aab4

View File

@@ -309,6 +309,16 @@ public final class Settings {
return System.getProperty(key, INSTANCE.props.getProperty(key));
}
/**
* Removes a property from the local properties collection. This is mainly
* used in test cases.
*
* @param key the property key to remove
*/
public static void removeProperty(String key) {
INSTANCE.props.remove(key);
}
/**
* Returns an int value from the properties file. If the value was specified
* as a system property or passed in via the -Dprop=value argument - this