org.kuali.rice.krad.uif.util
Class MockMessageService

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.MockMessageService
All Implemented Interfaces:
MessageService

public class MockMessageService
extends Object
implements MessageService

Provides mock messages for UIF unit tests.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from interface org.kuali.rice.krad.messages.MessageService
DEFAULT_COMPONENT_CODE, DEFAULT_NAMESPACE_CODE
 
Constructor Summary
MockMessageService()
           
 
Method Summary
 Collection<Message> getAllMessagesForComponent(String namespace, String component)
           
 Collection<Message> getAllMessagesForComponent(String namespace, String component, String locale)
           
 Message getMessage(String namespace, String component, String key)
           
 Message getMessage(String namespace, String component, String key, String locale)
           
 String getMessageText(String key)
           
 String getMessageText(String key, String locale)
           
 String getMessageText(String namespace, String component, String key)
           
 String getMessageText(String namespace, String component, String key, String locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockMessageService

public MockMessageService()
Method Detail

getMessage

public Message getMessage(String namespace,
                          String component,
                          String key)
Specified by:
getMessage in interface MessageService
See Also:
MessageService.getMessage(java.lang.String, java.lang.String, java.lang.String)

getMessage

public Message getMessage(String namespace,
                          String component,
                          String key,
                          String locale)
Specified by:
getMessage in interface MessageService
See Also:
MessageService.getMessage(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

getMessageText

public String getMessageText(String namespace,
                             String component,
                             String key)
Specified by:
getMessageText in interface MessageService
See Also:
MessageService.getMessageText(java.lang.String, java.lang.String, java.lang.String)

getMessageText

public String getMessageText(String namespace,
                             String component,
                             String key,
                             String locale)
Specified by:
getMessageText in interface MessageService
See Also:
MessageService.getMessageText(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

getMessageText

public String getMessageText(String key)
Specified by:
getMessageText in interface MessageService
See Also:
MessageService.getMessageText(java.lang.String)

getMessageText

public String getMessageText(String key,
                             String locale)
Specified by:
getMessageText in interface MessageService
See Also:
MessageService.getMessageText(java.lang.String, java.lang.String)

getAllMessagesForComponent

public Collection<Message> getAllMessagesForComponent(String namespace,
                                                      String component)
Specified by:
getAllMessagesForComponent in interface MessageService
See Also:
MessageService.getAllMessagesForComponent(java.lang.String, java.lang.String)

getAllMessagesForComponent

public Collection<Message> getAllMessagesForComponent(String namespace,
                                                      String component,
                                                      String locale)
Specified by:
getAllMessagesForComponent in interface MessageService
See Also:
MessageService.getAllMessagesForComponent(java.lang.String, java.lang.String, java.lang.String)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.