Class CompanyTestUtil
Object
com.liferay.portal.kernel.test.util.CompanyTestUtil
- Author:
- Manuel de la Peña
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.model.Companystatic com.liferay.portal.kernel.model.CompanyaddCompany(boolean initialize) static com.liferay.portal.kernel.model.CompanyaddCompany(String name) static voidresetCompanyLocales(long companyId, String languageIds, String defaultLanguageId) static voidresetCompanyLocales(long companyId, Collection<Locale> locales, Locale defaultLocale)
-
Constructor Details
-
CompanyTestUtil
public CompanyTestUtil()
-
-
Method Details
-
addCompany
- Throws:
Exception
-
addCompany
public static com.liferay.portal.kernel.model.Company addCompany(boolean initialize) throws Exception - Throws:
Exception
-
addCompany
- Throws:
Exception
-
resetCompanyLocales
public static void resetCompanyLocales(long companyId, Collection<Locale> locales, Locale defaultLocale) throws Exception - Throws:
Exception
-
resetCompanyLocales
public static void resetCompanyLocales(long companyId, String languageIds, String defaultLanguageId) throws Exception - Throws:
Exception
-