Beispiel #1
0
 /** Test method i18nManager.searchForBundleNamesContainingI18nFiles() */
 @Test
 public void testSearchForBundleNamesContainingI18nFiles() {
   long start = System.currentTimeMillis();
   List<String> foundBundles = i18nMgr.searchForBundleNamesContainingI18nFiles();
   long end = System.currentTimeMillis();
   log.info(
       "Searching for "
           + foundBundles.size()
           + " bundles on OLAT source path took me "
           + (end - start)
           + "ms: testSearchForBundleNamesContainingI18nFiles");
   // Must contain packages from core
   assertTrue(foundBundles.contains("org.olat.presentation"));
   assertTrue(foundBundles.contains("org.olat.presentation.framework.core"));
   assertTrue(foundBundles.contains("org.olat.presentation.framework.layout.fullWebApp"));
 }
 /** Test method i18nManager.searchForBundleNamesContainingI18nFiles() */
 @Test
 public void testSearchForBundleNamesContainingI18nFiles() {
   long start = System.currentTimeMillis();
   List<String> foundBundles = i18nMgr.searchForBundleNamesContainingI18nFiles();
   long end = System.currentTimeMillis();
   log.info(
       "Searching for "
           + foundBundles.size()
           + " bundles on OLAT source path took me "
           + (end - start)
           + "ms",
       "testSearchForBundleNamesContainingI18nFiles");
   // Must contain packages from core
   assertTrue(foundBundles.contains("org.olat.core"));
   assertTrue(foundBundles.contains("org.olat.core.gui.control"));
   assertTrue(foundBundles.contains("org.olat.core.commons.fullWebApp"));
   // Must contain packages from olat app
   assertTrue(foundBundles.contains("org.olat"));
   assertTrue(foundBundles.contains("org.olat.course"));
 }