Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2043

Maven tests depend on machine locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.8.0, OpenMRS 1.9.0
    • Fix Version/s: OpenMRS 1.8.0, OpenMRS 1.9.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      There are some tests that depend on en_US locale and more precisely on a number formatting (switch your system to the Polish locale to reproduce). They should be either made locale independent or en_US should be a default locale for running tests. The attached patch sets en_US as a default locale.

      Tests in question:

        weighConceptWord_shouldAssignAHigherWeightToAShorterWordIfBothWordsAreEqualToConceptName(org.openmrs.api.db.ConceptDAO
      Test)
        weighConceptWord_shouldAssignAHigherWeightToAShorterWordIfBothWordsAreAtTheStartOfTheConceptName(org.openmrs.api.db.Co
      nceptDAOTest)
        weighConceptWord_shouldWeighAWordForAFullySpecifiedNameHigherThanThatOfASynonym(org.openmrs.api.db.ConceptDAOTest)
        weighConceptWord_shouldWeighAWordForAPreferredFullySpecifiedHigherThanThatOfAPlainFullySpecifiedName(org.openmrs.api.d
      b.ConceptDAOTest)
        weighConceptWord_shouldWeighAWordForAPreferredFullySpecifiedHigherThanThatOfAPlainPreferredName(org.openmrs.api.db.Con
      ceptDAOTest)
        weighConceptWord_shouldWeighAWordForAPreferredNameHigherThanThatOfAFullySpecifiedName(org.openmrs.api.db.ConceptDAOTes
      t)
        weighConceptWord_shouldWeighAWordForAShorterConceptNameHigherThanThatOfALongerConceptName(org.openmrs.api.db.ConceptDA
      OTest)
        weighConceptWord_shouldWeighAWordForASynonymHigherThanThatOfAShortName(org.openmrs.api.db.ConceptDAOTest)
        weighConceptWord_shouldWeighAWordForAnIndexTermHigherThanThatOfAFullySpecifiedName(org.openmrs.api.db.ConceptDAOTest)
        weighConceptWord_shouldWeighAWordForAnIndexTermHigherThanThatOfAPreferredName(org.openmrs.api.db.ConceptDAOTest)
        weighConceptWord_shouldWeighWordsCloserToTheStartHigherThanThoseCloserToTheEndOfTheConceptName(org.openmrs.api.db.Conc
      eptDAOTest)
        weighConceptWord_shouldWeighAWordEqualToAConceptNameHigherThanOneThatMatchesTheStartOfTheConceptName(org.openmrs.api.d
      b.ConceptDAOTest)
        onFlushDirty_shouldNotFailWhenTheDaemonUserModifiesSomething(org.openmrs.api.db.hibernate.AuditableInterceptorTest)
        validate_shouldFailIfThereIsADuplicateUnretiredPreferredNameInTheSameLocale(org.openmrs.validator.ConceptValidatorTest
      )
        validate_shouldPassIfTheConceptWithADuplicateNameIsRetired(org.openmrs.validator.ConceptValidatorTest)
        saveConcept_shouldSaveAConceptNumericAsAConcept(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldSaveANewConceptNumeric(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldSaveNonConceptNumericObjectAsConceptNumeric(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldGenerateIdForNewConceptIfNoneIsSpecified(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldKeepIdForNewConceptIfOneIsSpecified(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldReuseConceptNameTagsThatAlreadyExistInTheDatabase(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldCreateNewConceptInDatabase(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldUpdateConceptAlreadyExistingInDatabase(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldUpdateConceptIfConceptIsAttachedToAnObservationAndItIsANonDatatypeChange(org.openmrs.api.ConceptServ
      iceTest)
        changeConceptFromBooleanToCoded_shouldConvertTheDatatypeOfABooleanConceptToCoded(org.openmrs.api.ConceptServiceTest)
        changeConceptFromBooleanToCoded_shouldExplicitlyAddFalseConceptAsAValue_CodedAnswer(org.openmrs.api.ConceptServiceTest
      )
        changeConceptFromBooleanToCoded_shouldExplicitlyAddTrueConceptAsAValue_CodedAnswer(org.openmrs.api.ConceptServiceTest)
      
        saveConcept_shouldCreateANewConceptNameWhenTheOldNameIsChanged(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldVoidTheConceptNameIfTheTextOfTheNameHasChanged(org.openmrs.api.ConceptServiceTest)
        saveConcept_shouldSetAPreferredNameForEachLocaleIfNoneIsMarked(org.openmrs.api.ConceptServiceTest)
      

        Attachments

          Activity

            People

            Assignee:
            raff Rafal Korytkowski
            Reporter:
            raff Rafal Korytkowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: