com.atlassian.confluence.languages
Class MockLocaleManager

java.lang.Object
  extended by com.atlassian.confluence.languages.MockLocaleManager
All Implemented Interfaces:
LocaleManager

public class MockLocaleManager
extends java.lang.Object
implements LocaleManager

Mock implementation of the LocaleManager to be used by tests


Field Summary
 
Fields inherited from interface com.atlassian.confluence.languages.LocaleManager
DEFAULT_LOCALE
 
Constructor Summary
MockLocaleManager()
           
 
Method Summary
 java.util.Locale getLocale(com.atlassian.user.User user)
           
 java.util.Locale toLocale(java.lang.String localeString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockLocaleManager

public MockLocaleManager()
Method Detail

getLocale

public java.util.Locale getLocale(com.atlassian.user.User user)
Specified by:
getLocale in interface LocaleManager

toLocale

public java.util.Locale toLocale(java.lang.String localeString)
Specified by:
toLocale in interface LocaleManager


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.