added ability to remove a property (for test cases)

Former-commit-id: b2388ddb516b2f5b32f54398c11fc0c00990c9c8
This commit is contained in:
Jeremy Long
2013-08-29 16:56:00 -04:00
parent d2bfcc6f0e
commit 23a47a6f63

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