com.atlassian.jira.web.bean
Class MockI18nBean

java.lang.Object
  extended by com.atlassian.jira.web.bean.I18nBean
      extended by com.atlassian.jira.web.bean.MockI18nBean
All Implemented Interfaces:
I18nHelper

public class MockI18nBean
extends I18nBean

Mock I18nBean to get around the problem of having to lookup a default locale via applicationProperties via the DB. If you want to assert the key and not use any property bundles you can use MockI18nHelper.

Since:
v3.13

Nested Class Summary
static class MockI18nBean.MockI18nBeanFactory
           
 
Nested classes/interfaces inherited from class com.atlassian.jira.web.bean.I18nBean
I18nBean.AccessorFactory, I18nBean.CachingFactory
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Constructor Summary
MockI18nBean()
           
 
Method Summary
protected  I18nHelper.BeanFactory getFactory()
           
 
Methods inherited from class com.atlassian.jira.web.bean.I18nBean
getDefaultResourceBundle, getKeysForPrefix, getLocale, getLocaleFromUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, isKeyDefined
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockI18nBean

public MockI18nBean()
Method Detail

getFactory

protected I18nHelper.BeanFactory getFactory()
Overrides:
getFactory in class I18nBean


Copyright © 2002-2013 Atlassian. All Rights Reserved.