OpenmrsUtilTest

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total811 of 8110%18 of 180%59592172175050
isValidCheckDigit_shouldValidateCorrectCheckDigits()730%20%226611
getCheckDigit_shouldGetValidCheckDigits()650%20%225511
getDateFormat_shouldNotAllowTheReturnedSimpleDateFormatToBeModified()610%60%44131311
openmrsDateFormat_shouldNotAllowDatesWithInvalidDaysOrMonths()610%n/a11212111
collectionContains_shouldUseEqualsMethodForComparisonInsteadOfCompareToGivenListCollection()590%20%22141411
collectionContains_shouldUseEqualsMethodForComparisonInsteadOfCompareToGivenSortedSetCollection()590%20%22141411
isValidCheckDigit_shouldThrowErrorIfGivenAnInvalidCharacterInId()450%20%227711
isValidCheckDigit_shouldNotValidateInvalidCheckDigits()290%20%224411
getDateFormat_shouldReturnAPatternWithFourYCharactersInIt()250%n/a115511
openmrsDateFormat_shouldParseValidDate()230%n/a115511
containsOnlyDigits_shouldReturnFalseIfStringContainsAnyNonDigits()160%n/a116611
openmrsDateFormat_shouldNotAllowTwoDigitYears()150%n/a116611
containsUpperAndLowerCase_shouldReturnTrueIfStringContainsUpperAndLowerCase()130%n/a115511
containsUpperAndLowerCase_shouldReturnFalseIfStringDoesNotContainLowerCaseCharacters()130%n/a115511
containsUpperAndLowerCase_shouldReturnFalseIfStringDoesNotContainUpperCaseCharacters()130%n/a115511
validatePassword_shouldPassWithDigitOnlyPasswordIfAllowed()110%n/a114411
validatePassword_shouldPassWithCharOnlyPasswordIfAllowed()110%n/a114411
openmrsDateFormat_shouldAllowSingleDigitDatesAndMonths()110%n/a113311
containsDigit_shouldReturnFalseIfStringContainsNoDigits()100%n/a114411
shortenedStackTrace_shouldRemoveSpringframeworkAndReflectionRelatedLines()100%n/a114411
runBeforeEachTest()90%n/a114411
validatePassword_shouldFailWithDigitOnlyPasswordIfNotAllowed()80%n/a113311
validatePassword_shouldFailWithCharOnlyPasswordIfNotAllowed()80%n/a113311
validatePassword_shouldFailWithoutUpperAndLowerCasePasswordIfNotAllowed()80%n/a113311
validatePassword_shouldPassWithoutUpperAndLowerCasePasswordIfAllowed()80%n/a113311
validatePassword_shouldFailWithPasswordEqualsToUserNameIfNotAllowed()80%n/a113311
validatePassword_shouldPassWithPasswordEqualsToUserNameIfAllowed()80%n/a113311
validatePassword_shouldFailWithPasswordEqualsToSystemIdIfNotAllowed()80%n/a113311
validatePassword_shouldPassWithPasswordEqualsToSystemIdIfAllowed()80%n/a113311
validatePassword_shouldFailWithShortPasswordIfNotAllowed()80%n/a113311
validatePassword_shouldPassWithShortPasswordIfAllowed()80%n/a113311
validatePassword_shouldFailWithPasswordNotMatchingConfiguredRegex()80%n/a114411
validatePassword_shouldPassWithPasswordMatchingConfiguredRegex()80%n/a114411
static {...}70%n/a113311
validatePassword_shouldStillWorkWithoutAnOpenSession()60%n/a113311
validatePassword_shouldFailWithDigitOnlyPasswordByDefault()50%n/a112211
validatePassword_shouldFailWithCharOnlyPasswordByDefault()50%n/a112211
validatePassword_shouldFailWithoutUpperAndLowerCasePasswordByDefault()50%n/a112211
validatePassword_shouldFailWithPasswordEqualsToUserNameByDefault()50%n/a112211
validatePassword_shouldFailWithPasswordEqualsToSystemIdByDefault()50%n/a112211
validatePassword_shouldFailWithShortPasswordByDefault()50%n/a112211
validatePassword_shouldAllowPasswordToContainNonAlphanumericCharacters()50%n/a112211
validatePassword_shouldAllowPasswordToContainWhiteSpaces()50%n/a112211
shortenedStackTrace_shouldReturnNullIfStackTraceIsNull()50%n/a112211
nullSafeEqualsIgnoreCase_shouldBeCaseInsensitive()50%n/a112211
nullSafeEqualsIgnoreCase_shouldReturnFalseIfOnlyOneOfTheStringsIsNull()50%n/a112211
url2file_shouldReturnNullGivenNullParameter()40%n/a112211
containsOnlyDigits_shouldReturnTrueIfStringContainsOnlyDigits()40%n/a112211
containsDigit_shouldReturnTrueIfStringContainsAnyDigits()40%n/a112211
OpenmrsUtilTest()30%n/a111111