Example usage for com.liferay.portal.kernel.language LanguageUtil isInheritLocales

List of usage examples for com.liferay.portal.kernel.language LanguageUtil isInheritLocales

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.language LanguageUtil isInheritLocales.

Prototype

public static boolean isInheritLocales(long groupId) throws PortalException 

Source Link

Usage

From source file:com.liferay.site.service.persistence.test.GroupServiceTest.java

License:Open Source License

@Test
public void testInheritLocalesByDefault() throws Exception {
    Group group = GroupTestUtil.addGroup();

    Assert.assertTrue(LanguageUtil.isInheritLocales(group.getGroupId()));
    Assert.assertEquals(LanguageUtil.getAvailableLocales(),
            LanguageUtil.getAvailableLocales(group.getGroupId()));

    GroupLocalServiceUtil.deleteGroup(group);
}