public class MockResourceBundleLoader extends Object implements ResourceBundleLoader
ResourceBundleLoader.LoadResult| Constructor and Description |
|---|
MockResourceBundleLoader() |
MockResourceBundleLoader(Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
MockResourceBundleLoader |
helpText()
Returns a loader that will search for resources associated with
HelpUrls. |
MockResourceBundleLoader |
i18n()
Returns a loader that will search for resources associated with a
I18nHelper. |
ResourceBundleLoader.LoadResult |
load()
Perform a search and load all the configured resources.
|
MockResourceBundleLoader |
locale(Locale locale)
Returns a loader that will search for resources associated with the passed
Locale. |
MockResourceBundleLoader |
registerHelp(Map<String,String> text,
com.atlassian.plugin.Plugin... plugins) |
MockResourceBundleLoader |
registerI18n(Map<String,String> text,
com.atlassian.plugin.Plugin... plugins) |
public MockResourceBundleLoader()
public MockResourceBundleLoader(Locale locale)
public MockResourceBundleLoader locale(Locale locale)
ResourceBundleLoaderLocale. This method will not
mutate this and as such the caller must use the returned loader to search against the passed Locale.locale in interface ResourceBundleLoaderlocale - the locale.Locale. The type of search
remains unchanged.public MockResourceBundleLoader helpText()
ResourceBundleLoaderHelpUrls.
The Locale used by the search remains unchanged. This method will not mutate this and as such
the caller must use the returned loader to find the right type of resources.helpText in interface ResourceBundleLoaderHelpUrls. The Locale used by
the search remains unchanged.public MockResourceBundleLoader i18n()
ResourceBundleLoaderI18nHelper.
The Locale used by the search remains unchanged. This method will not mutate this and as such
the caller must use the returned loader to find the right type of resources.i18n in interface ResourceBundleLoaderI18nHelper. The Locale used by
the search remains unchanged.public ResourceBundleLoader.LoadResult load()
ResourceBundleLoaderload in interface ResourceBundleLoaderpublic MockResourceBundleLoader registerI18n(Map<String,String> text, com.atlassian.plugin.Plugin... plugins)
public MockResourceBundleLoader registerHelp(Map<String,String> text, com.atlassian.plugin.Plugin... plugins)
Copyright © 2002-2015 Atlassian. All Rights Reserved.