Example usage for com.liferay.portal.language LanguageImpl LanguageImpl

List of usage examples for com.liferay.portal.language LanguageImpl LanguageImpl

Introduction

In this page you can find the example usage for com.liferay.portal.language LanguageImpl LanguageImpl.

Prototype

LanguageImpl

Source Link

Usage

From source file:com.liferay.configuration.admin.web.internal.util.ConfigurationModelToDDMFormConverterTest.java

License:Open Source License

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);

    LanguageUtil languageUtil = new LanguageUtil();

    languageUtil.setLanguage(new LanguageImpl());
}

From source file:com.liferay.wiki.editor.configuration.internal.WikiAttachmentEditorConfigContributorTest.java

License:Open Source License

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);

    JSONFactoryUtil jsonFactoryUtil = new JSONFactoryUtil();

    jsonFactoryUtil.setJSONFactory(new JSONFactoryImpl());

    LanguageUtil languageUtil = new LanguageUtil();

    languageUtil.setLanguage(new LanguageImpl());

    _requestBackedPortletURLFactory = mock(RequestBackedPortletURLFactory.class);

    when(_requestBackedPortletURLFactory.createActionURL(WikiPortletKeys.WIKI))
            .thenReturn(mock(LiferayPortletURL.class));

    PortletURL itemSelectorPortletURL = mock(PortletURL.class);

    when(itemSelectorPortletURL.toString())
            .thenReturn("itemSelectorPortletURLWithWikiImageUrlAndUploadSelectionViews");

    when(_itemSelector.getItemSelectorURL(Mockito.any(RequestBackedPortletURLFactory.class),
            Mockito.anyString(), Mockito.any(ItemSelectorCriterion.class),
            Mockito.any(ItemSelectorCriterion.class), Mockito.any(ItemSelectorCriterion.class),
            Mockito.any(ItemSelectorCriterion.class))).thenReturn(itemSelectorPortletURL);

    _inputEditorTaglibAttributes.put("liferay-ui:input-editor:name", "testEditor");
}

From source file:com.liferay.wiki.editor.configuration.internal.WikiAttachmentImageCreoleEditorConfigContributorTest.java

License:Open Source License

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);

    JSONFactoryUtil jsonFactoryUtil = new JSONFactoryUtil();

    jsonFactoryUtil.setJSONFactory(new JSONFactoryImpl());

    LanguageUtil languageUtil = new LanguageUtil();

    languageUtil.setLanguage(new LanguageImpl());

    _requestBackedPortletURLFactory = mock(RequestBackedPortletURLFactory.class);

    when(_requestBackedPortletURLFactory.createActionURL(WikiPortletKeys.WIKI))
            .thenReturn(mock(LiferayPortletURL.class));

    _inputEditorTaglibAttributes.put("liferay-ui:input-editor:name", "testEditor");
}