Package org.easymock.internal
Class EasyMockProperties
java.lang.Object
org.easymock.internal.EasyMockProperties
Contains properties used by EasyMock to change its default behavior. The
loading order is (any step being able to overload the properties of the
previous step):
- easymock.properties in classpath default package
- explicit call to setProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static EasyMockProperties
private static final String
private final Properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ClassLoader
static EasyMockProperties
getProperty
(String key) Searches for the property with the specified key.getProperty
(String key, String defaultValue) Searches for the property with the specified key.private void
loadEasyMockProperties
(String propertyFileName) setProperty
(String key, String value) Add a value referenced by the provided key.
-
Field Details
-
PREFIX
- See Also:
-
instance
-
properties
-
-
Constructor Details
-
EasyMockProperties
private EasyMockProperties()
-
-
Method Details
-
getInstance
-
loadEasyMockProperties
-
getProperty
Searches for the property with the specified key. If the key is not found, return the default value.- Parameters:
key
- key leading to the propertydefaultValue
- the value to be returned if the key isn't found- Returns:
- the value found for the key or the default value
-
getProperty
Searches for the property with the specified key. Return null if the key is not found.- Parameters:
key
- key leading to the property- Returns:
- the value found for the key or null
-
setProperty
Add a value referenced by the provided key. A null value will remove the key- Parameters:
key
- the key of the new propertyvalue
- the value corresponding to key.- Returns:
- the property previous value
-
getClassLoader
-