org.exoplatform.commons.testing.mock
Class MockResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.exoplatform.commons.testing.mock.MockResourceBundle

public class MockResourceBundle
extends ResourceBundle

Version:
$Revision$
Author:
Patrice Lamarque

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
protected  Map<String,Object> content
           
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
MockResourceBundle(Map<String,Object> content)
           
 
Method Summary
 Enumeration<String> getKeys()
           
protected  Object handleGetObject(String key)
           
 void put(String key, String value)
           
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected Map<String,Object> content
Constructor Detail

MockResourceBundle

public MockResourceBundle(Map<String,Object> content)
Method Detail

handleGetObject

protected Object handleGetObject(String key)
Specified by:
handleGetObject in class ResourceBundle

getKeys

public Enumeration<String> getKeys()
Specified by:
getKeys in class ResourceBundle

put

public void put(String key,
                String value)


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.