DictionaryReindexer { public void reindexDictionaries() throws SearchException { reindexDictionaries(CompanyConstants.SYSTEM); long[] companyIds = _portalInstancesLocalService.getCompanyIds(); for (long companyId : companyIds) { reindexDictionaries(companyId); } } DictionaryReindexer(
		IndexWriterHelper indexWriterHelper,
		PortalInstancesLocalService portalInstancesLocalService); void reindexDictionaries();  }
@Test public void testReindexAllCompaniesDictionaries() throws SearchException { DictionaryReindexer dictionaryReindexer = new DictionaryReindexer( _indexWriterHelper, _portalInstancesLocalService); dictionaryReindexer.reindexDictionaries(); for (long companyId : _COMPANY_IDS) { assertIndexWriterHelperReindexDictionariesWithCompanyId(companyId); } }
@Test public void testReindexSystemCompanyDictionaries() throws SearchException { DictionaryReindexer dictionaryReindexer = new DictionaryReindexer( _indexWriterHelper, _portalInstancesLocalService); dictionaryReindexer.reindexDictionaries(); assertIndexWriterHelperReindexDictionariesWithCompanyId( CompanyConstants.SYSTEM); }