Package com.atlassian.jira.message
Class MockMessageUtilFactory
java.lang.Object
com.atlassian.jira.message.MockMessageUtilFactory
- All Implemented Interfaces:
MessageUtil.Factory
@ParametersAreNonnullByDefault
public class MockMessageUtilFactory
extends Object
implements MessageUtil.Factory
Mock implementation of
MessageUtil.Factory, delegating to the following mock objects:
NoopI18nFactory, MockAuthenticationContext, MockExternalLinkUtil, MockHelpUrls
and NoopI18nHelper
- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate aMessageUtilfor the current logged-in user.Create aMessageUtilusing the specified user's locale.getNewInstance(Locale locale) Create aMessageUtilusing the specified locale.
-
Constructor Details
-
MockMessageUtilFactory
public MockMessageUtilFactory()
-
-
Method Details
-
getNewInstance
Description copied from interface:MessageUtil.FactoryCreate aMessageUtilfor the current logged-in user.- Specified by:
getNewInstancein interfaceMessageUtil.Factory- Returns:
- MessageUtil set to the locale of the current logged-in user.
-
getNewInstance
Description copied from interface:MessageUtil.FactoryCreate aMessageUtilusing the specified user's locale.- Specified by:
getNewInstancein interfaceMessageUtil.Factory- Returns:
- MessageUtil set to the locale of the specified user.
-
getNewInstance
Description copied from interface:MessageUtil.FactoryCreate aMessageUtilusing the specified locale.- Specified by:
getNewInstancein interfaceMessageUtil.Factory- Returns:
- MessageUtil based on the specified locale.
-