@ParametersAreNonnullByDefault public class MockMessageUtilFactory extends Object implements MessageUtil.Factory
MessageUtil.Factory
, delegating to the following mock objects:
NoopI18nFactory
, MockAuthenticationContext
, MockExternalLinkUtil
, MockHelpUrls
and NoopI18nHelper
Constructor and Description |
---|
MockMessageUtilFactory() |
Modifier and Type | Method and Description |
---|---|
MessageUtil |
getNewInstance()
Create a
MessageUtil for the current logged-in user. |
MessageUtil |
getNewInstance(ApplicationUser user)
Create a
MessageUtil using the specified user's locale. |
MessageUtil |
getNewInstance(Locale locale)
Create a
MessageUtil using the specified locale. |
public MessageUtil getNewInstance()
MessageUtil.Factory
MessageUtil
for the current logged-in user.getNewInstance
in interface MessageUtil.Factory
public MessageUtil getNewInstance(ApplicationUser user)
MessageUtil.Factory
MessageUtil
using the specified user's locale.getNewInstance
in interface MessageUtil.Factory
public MessageUtil getNewInstance(Locale locale)
MessageUtil.Factory
MessageUtil
using the specified locale.getNewInstance
in interface MessageUtil.Factory
Copyright © 2002-2021 Atlassian. All Rights Reserved.