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)
ResourceBundleLoader
Locale
. 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 ResourceBundleLoader
locale
- the locale.Locale
. The type of search
remains unchanged.public MockResourceBundleLoader helpText()
ResourceBundleLoader
HelpUrls
.
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 ResourceBundleLoader
HelpUrls
. The Locale
used by
the search remains unchanged.public MockResourceBundleLoader i18n()
ResourceBundleLoader
I18nHelper
.
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 ResourceBundleLoader
I18nHelper
. The Locale
used by
the search remains unchanged.public ResourceBundleLoader.LoadResult load()
ResourceBundleLoader
load
in interface ResourceBundleLoader
public 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-2016 Atlassian. All Rights Reserved.