Package de.cuioss.test.valueobjects.util
Class IdentityResourceBundle
java.lang.Object
java.util.ResourceBundle
de.cuioss.test.valueobjects.util.IdentityResourceBundle
An
IdentityResourceBundle
is helpful for tests where you want to
ensure that a certain message key is used to create a message but do not want
to test the actual ResourceBundle
mechanism itself, what is the case
for many tests. It will always return the given key itself.- Author:
- Oliver Wolff
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
Field Summary
Fields inherited from class java.util.ResourceBundle
parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) getKeys()
protected Object
handleGetObject
(String key) Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
Constructor Details
-
IdentityResourceBundle
public IdentityResourceBundle()
-
-
Method Details
-
handleGetObject
- Specified by:
handleGetObject
in classResourceBundle
-
getKeys
- Specified by:
getKeys
in classResourceBundle
-
containsKey
- Overrides:
containsKey
in classResourceBundle
-