org.olat.core.util.i18n
Class I18nTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.olat.core.test.OlatTestCase
              extended by org.olat.core.util.i18n.I18nTest
All Implemented Interfaces:
junit.framework.Test

public class I18nTest
extends OlatTestCase

Description:
Testing i18n Translation Tool and Translation Developers Tools

Initial Date: 01.09.2008

Author:
gnaegi, rhaag

Constructor Summary
I18nTest()
           
 
Method Summary
static junit.framework.Test suite()
           
 void testBuildI18nFilename()
          Test method i18nManager.buildI18nFilename()
 void testCountI18nItemsAndBundles()
          Test methods i18nManager.countI18nItems() and i18nManager.countBundles()
 void testCreateLocale()
          Test methods i18nManager.createLocal()
 void testFindInKeysAndFindInValues()
          Test methods i18nManager.findInKeys() i18nManager.findInValues()
 void testFindMissingI18nItems()
          Test methods i18nManager.findMissingI18nItems()
 void testGetAnnotation()
          Test methods i18nManager.getAnnotation()
 void testGetBundleAndKeyPriority()
          Test methods i18nManager.getBundlePriority(), i18nManager.getKeyPriority()
 void testGetDouplicateKeys()
           
 void testGetDouplicateValues()
           
 void testGetLanguageIn()
          Test methods i18nManager.getLanguageTranslated() i18nManager.getLanguageInEnglish()
 void testGetLocaleOrFallback()
          Test methods i18nManager.getLocaleOrFallback()
 void testGetLostTranslationsFromBranch()
           
 void testGetPropertyFile()
          Test methods i18nManager.getLanguageTranslated() i18nManager.getLanguageInEnglish()
 void testGetSaveOrUpdateAndDeleteProperties()
          Test methods i18nManager.getProperties(), i18nManager.saveOrUpdateProperties() and i18nManager.deleteProperties()
 void testInlineTranslationReplaceLocalizationMarkupWithHTML()
          Test methods i18nManager inline translation tool and InlineTranslationInterceptHandlerController
 void testMergePackageTask()
           
 void testMoveKeyTask()
           
 void testMoveLanguageTask()
           
 void testMovePackageByMovingSingleKeysTask()
           
 void testMovePackageTask()
           
 void testRemoveDeletedKeysTest()
           
 void testRemoveEmptyKeysTask()
           
 void testRemoveReferenceLanguageCopiesTask()
           
 void testRemoveTodoKeyTask()
           
 void testRemoveXKeyTask()
           
 void testRenameLanguageTask()
           
 void testResolvePropertiesInternalKeys()
          Test method i18nManager.getLocalizedString() with resolvePropertiesInternalKeys()
 void testSearchForAvailableLanguages()
          Test method i18nManager.searchForAvailableLanguages()
 void testSearchForBundleNamesContainingI18nFiles()
          Test method i18nManager.searchForBundleNamesContainingI18nFiles()
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

I18nTest

public I18nTest()
Method Detail

testGetLostTranslationsFromBranch

public void testGetLostTranslationsFromBranch()

testRemoveDeletedKeysTest

public void testRemoveDeletedKeysTest()

testMoveKeyTask

public void testMoveKeyTask()

testMovePackageTask

public void testMovePackageTask()

testMovePackageByMovingSingleKeysTask

public void testMovePackageByMovingSingleKeysTask()

testMergePackageTask

public void testMergePackageTask()

testRenameLanguageTask

public void testRenameLanguageTask()

testGetDouplicateKeys

public void testGetDouplicateKeys()

testGetDouplicateValues

public void testGetDouplicateValues()

testMoveLanguageTask

public void testMoveLanguageTask()

testRemoveXKeyTask

public void testRemoveXKeyTask()

testRemoveTodoKeyTask

public void testRemoveTodoKeyTask()

testRemoveEmptyKeysTask

public void testRemoveEmptyKeysTask()

testRemoveReferenceLanguageCopiesTask

public void testRemoveReferenceLanguageCopiesTask()

testSearchForAvailableLanguages

public void testSearchForAvailableLanguages()
Test method i18nManager.searchForAvailableLanguages()


testSearchForBundleNamesContainingI18nFiles

public void testSearchForBundleNamesContainingI18nFiles()
Test method i18nManager.searchForBundleNamesContainingI18nFiles()


testBuildI18nFilename

public void testBuildI18nFilename()
Test method i18nManager.buildI18nFilename()


testGetLocaleOrFallback

public void testGetLocaleOrFallback()
Test methods i18nManager.getLocaleOrFallback()


testCreateLocale

public void testCreateLocale()
Test methods i18nManager.createLocal()


testGetLanguageIn

public void testGetLanguageIn()
Test methods i18nManager.getLanguageTranslated() i18nManager.getLanguageInEnglish()


testGetPropertyFile

public void testGetPropertyFile()
Test methods i18nManager.getLanguageTranslated() i18nManager.getLanguageInEnglish()


testGetSaveOrUpdateAndDeleteProperties

public void testGetSaveOrUpdateAndDeleteProperties()
Test methods i18nManager.getProperties(), i18nManager.saveOrUpdateProperties() and i18nManager.deleteProperties()


testGetBundleAndKeyPriority

public void testGetBundleAndKeyPriority()
Test methods i18nManager.getBundlePriority(), i18nManager.getKeyPriority()


testGetAnnotation

public void testGetAnnotation()
Test methods i18nManager.getAnnotation()


testCountI18nItemsAndBundles

public void testCountI18nItemsAndBundles()
Test methods i18nManager.countI18nItems() and i18nManager.countBundles()


testFindInKeysAndFindInValues

public void testFindInKeysAndFindInValues()
Test methods i18nManager.findInKeys() i18nManager.findInValues()


testFindMissingI18nItems

public void testFindMissingI18nItems()
Test methods i18nManager.findMissingI18nItems()


testInlineTranslationReplaceLocalizationMarkupWithHTML

public void testInlineTranslationReplaceLocalizationMarkupWithHTML()
Test methods i18nManager inline translation tool and InlineTranslationInterceptHandlerController


testResolvePropertiesInternalKeys

public void testResolvePropertiesInternalKeys()
Test method i18nManager.getLocalizedString() with resolvePropertiesInternalKeys()


suite

public static junit.framework.Test suite()
                                  throws java.lang.Exception
Throws:
java.lang.Exception