Examples of movePackageTask()


Examples of org.olat.core.util.i18n.devtools.TranslationDevManager.movePackageTask()

      prepareDevToolTests();
      I18nManager i18nMgr = I18nManager.getInstance();
      String testSourceBundle = "org.olat.core.util.i18n.junittestdata.devtools.source";
      String testTargetBundle = "org.olat.core.util.i18n.junittestdata.devtools.target";
      TranslationDevManager tDMgr = TranslationDevManager.getInstance();
      tDMgr.movePackageTask(testSourceBundle, testTargetBundle);
      i18nMgr.clearCaches();
      Properties sourceProp = i18nMgr.getPropertiesWithoutResolvingRecursively(null, testSourceBundle);
      assertTrue(sourceProp.isEmpty());
      Properties targetProp = i18nMgr.getPropertiesWithoutResolvingRecursively(null, testTargetBundle);
      assertFalse(targetProp.isEmpty());   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.