PersonServiceTest

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total3,577 of 3,5770%138 of 1380%187187933933118118
createTestDatedRelationships(Person, Person, RelationshipType)2640%n/a11686811
getRelationships3_shouldFetchRelationshipsThatWereActiveDuringTheSpecifiedDateRange()1250%200%1111222211
getRelationships2_shouldFetchRelationshipsThatWereActiveDuringEffectiveDate()1220%200%1111212111
getRelationshipsByPerson_shouldFetchRelationshipsThatWereActiveDuringEffectiveDate()1160%200%1111212111
createTestPatient()1140%n/a11313111
getRelationshipsByPerson_shouldOnlyGetUnvoidedRelationshipsRegardlessOfEffectiveDate()1080%20%22222211
getWinningPersonMergeLogs_shouldRetrievePersonMergeLogsByWinner()1040%60%44181811
getRelationshipsByPerson_shouldOnlyGetUnvoidedRelationships()1020%20%22222211
getTestPersonMergeLog()790%n/a11222211
savePersonAttributeType_shouldUpdateAnyGlobalPropertyWhichReferenceThisType()700%n/a11212111
getSimilarPeople_shouldMatchSingleSearchToAnyNamePart()610%n/a11131311
getLosingPersonMergeLog_shouldFindPersonMergeLogByLoser()580%n/a11111111
purgePerson_shouldDeletePersonFromTheDatabase()560%n/a11161611
getPersonAttributeTypes_shouldReturnPersonAttributeTypesMatchingGivenParameters()540%40%33121211
getSimilarPeople_shouldMatchTwoWordSearchToAnyNamePart()460%n/a11101011
savePerson_shouldCreateNewObjectWhenPersonIdIsNull()440%n/a11121211
unvoidRelationship_shouldUnvoidVoidedRelationship()410%n/a11131311
getAllPersonAttributeTypes_shouldReturnAllPersonAttributeTypesExcludingRetiredWhenIncludeRetiredIsFalse()390%60%44111111
getAllPersonAttributeTypes_shouldReturnAllPersonAttributeTypesIncludingRetiredWhenIncludeRetiredIsTrue()390%60%44111111
getAllRelationships_shouldReturnAllRelationshipIncludingVoidedWhenIncludeVoidedEqualsTrue()390%60%44111111
getAllRelationships_shouldReturnAllRelationshipExcludingVoidedWhenIncludeVoidedEqualsFalse()390%60%44111111
getAllPersonAttributeTypes_shouldReturnAllPersonAttributeTypesIncludingRetired()380%60%44111111
getAllRelationships_shouldReturnAllUnvoidedRelationships()380%60%44111111
getRelationships3_shouldReturnEmptyListWhenNoRelationshipMatchingGivenParametersExist()360%n/a119911
saveRelationship_shouldCreateNewObjectWhenRelationshipIdIsNull()350%n/a119911
voidPerson_shouldRetireUsers()350%n/a117711
unvoidPerson_shouldNotUnretireUsers()340%n/a117711
getRelationships2_shouldReturnEmptyListWhenNoRelationshipMatchingGivenParametersExist()330%n/a119911
purgeRelationshipType_shouldDeleteRelationshipTypeFromTheDatabase()330%n/a11111111
getSimilarPeople_shouldMatchThreeWordSearchToAnyNamePart()310%n/a117711
voidPerson_shouldReturnVoidedPersonWithGivenReason()310%n/a119911
voidPersonName_shouldVoidPersonNameWithTheGivenReason()310%n/a119911
voidPersonAddress_shouldVoidPersonAddressWithTheGivenReason()310%n/a11111111
getPeople_shouldMatchSearchToFamilyName2()300%n/a117711
getRelationships3_shouldFetchRelationshipsMatchingTheGivenFromPerson()300%20%226611
getRelationships3_shouldFetchRelationshipsMatchingTheGivenToPerson()300%20%226611
getRelationships3_shouldFetchRelationshipsMatchingTheGivenRelType()300%20%227711
purgePersonAttributeType_shouldDeletePersonAttributeTypeFromDatabase()300%n/a11101011
getAllPersonMergeLogs_shouldRetrieveAllPersonMergeLogsAndDeserializeThem()300%n/a117711
getPersonMergeLogByUuid_shouldRetrievePersonMergeLogAndDeserializeData()290%n/a118811
unvoidPersonName_shouldUnvoidVoidedPersonName()290%n/a119911
unvoidPersonAddress_shouldUnvoidVoidedpersonAddress()290%n/a11101011
saveRelationship_shouldUpdateExistingObjectWhenRelationshipIdIsNotNull()280%n/a117711
voidRelationship_shouldVoidRelationshipWithTheGivenReason()280%n/a119911
savePersonAttributeType_shouldSetTheDateCreatedAndCreatorOnNew()270%n/a118811
getRelationships2_shouldFetchRelationshipsMatchingTheGivenFromPerson()270%20%226611
getRelationships2_shouldFetchRelationshipsMatchingTheGivenToPerson()270%20%226611
getRelationships2_shouldFetchRelationshipsMatchingTheGivenRelType()270%20%226611
getSimilarPeople_shouldAcceptGreaterThanThreeNames()260%n/a116611
unvoidPerson_shouldUnvoidTheGivenPerson()260%n/a118811
parsePersonName_shouldParseTwoPersonNameWithComma()250%n/a117711
savePersonAttributeType_shouldSetTheDateChangedAndChangedByOnUpdate()250%n/a117711
getSimilarPeople_shouldMatchSearchToFamilyName2()250%n/a116611
getRelationshipsByPerson2_shouldFetchRelationshipsAssociatedWithTheGivenPerson()250%20%226611
saveRelationshipType_shouldCreateNewObjectWhenRelationshipTypeIdIsNull()250%n/a118811
getRelationships_shouldFetchRelationshipsMatchingTheGivenFromPerson()240%20%226611
getRelationships_shouldFetchRelationshipsMatchingTheGivenToPerson()240%20%226611
getRelationships_shouldFetchRelationshipsMatchingTheGivenRelType()240%20%226611
getRelationshipsByPerson2_shouldFetchUnvoidedRelationshipsOnly()240%n/a117711
savePersonMergeLog_shouldSavePersonMergeLog()230%n/a118811
saveRelationshipType_shouldUpdateExistingObjectWhenRelationshipTypeIdIsNotNull()230%n/a116611
getRelationshipsByPerson_shouldFetchRelationshipsAssociatedWithTheGivenPerson()220%20%226611
unvoidPerson_shouldUnvoidPatient()220%n/a115511
getRelationshipMap_shouldReturnEmptyMapWhenNoRelationshipHasTheMatchingRelationshipType()210%n/a117711
getRelationshipsByPerson_shouldFetchUnvoidedRelationshipsOnly()210%n/a117711
parsePersonName_shouldParseFourPersonName()210%n/a116611
getRelationshipTypes_shouldReturnListOfPreferredRelationshipTypeMatchingGivenName()200%20%225511
savePerson_shouldUpdateExistingObjectWhenPersonIdIsNotNull()200%n/a116611
getPersonAttributeTypes_shouldReturnEmptyListWhenNoPersonAttributeTypesMatchGivenParameters()180%n/a116611
savePersonMergeLog_shouldSetCreatorIfNull()180%n/a116611
getAllPersonMergeLogs_shouldRetrieveAllPersonMergeLogsFromTheModel()180%n/a115511
purgeRelationship_shouldDeleteRelationshipFromTheDatabase()180%n/a116611
getPersonMergeLogByUuid_shouldRetrievePersonMergeLogWithoutDeserializingData()170%n/a115511
savePersonName_shouldFailIfYouTryToVoidTheLastNonVoidedName()170%n/a115511
voidPerson_shouldVoidPatient()170%n/a114411
getAllRelationshipTypes_shouldReturnAllRelationshipTypes()160%20%224411
saveRelationshipType_shouldFailIfTheDescriptionIsNotSpecified()160%n/a115511
savePersonMergeLog_shouldSerializePersonMergeLogData()150%n/a115511
savePersonMergeLog_shouldSetDateCreatedIfNull()150%n/a115511
getPersonAttribute_shouldReturnPersonAttributeWhenGivenIdDoesExist()140%n/a115511
getRelationshipType_shouldReturnRelationshipTypeWithTheGivenRelationshipTypeId()140%n/a115511
onSetUpInTransaction()130%20%225511
parsePersonName_shouldParseTwoPersonNameWithoutComma()130%n/a114411
getRelationshipTypes_shouldReturnEmptyListWhenNoPreferredRelationshipTypeMatchTheGivenName()130%n/a114411
getPersonAddressByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
getPersonAttributeByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
getPersonAttributeTypeByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
getPersonByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
getPersonNameByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
getRelationshipByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
getRelationshipTypeByUuid_shouldFindObjectGivenValidUuid()130%n/a114411
PersonServiceTest()120%n/a114411
savePersonMergeLog_shouldRequirePersonMergeLogData()120%n/a114411
getPersonNameById_shouldFindObjectGivenValidId()120%n/a113311
getRelationshipTypes_shouldReturnEmptyListWhenNoRelationshipTypeMatchTheSearchString()110%n/a114411
savePersonMergeLog_shouldRequireLoser()110%n/a114411
savePersonMergeLog_shouldRequireWinner()110%n/a114411
parsePersonName_shouldNotFailWhenEndingWithWhitespace()90%n/a113311
parsePersonName_shouldNotFailWhenEndingWithAComma()90%n/a113311
getPerson_shouldReturnNullWhenNoPersonHasTheGivenId()80%n/a113311
getPersonAttribute_shouldReturnNullWhenGivenIdDoesNotExist()80%n/a113311
getPersonAttributeType_shouldReturnNullWhenNoPersonAttributeWithTheGivenIdExist()80%n/a113311
getRelationship_shouldReturnRelationshipWithGivenId()80%n/a113311
getRelationship_shouldReturnNullWhenRelationshipWithGivenIdDoesNotExist()80%n/a113311
getRelationshipType_shouldReturnNullWhenNoRelationshipTypeMatchesGivenRelationshipTypeId()80%n/a113311
getPersonNameById_shouldNotFindAnyObjectGivenInvalidId()80%n/a113311
getPersonAttributeTypeByName_shouldReturnPersonAttributeTypeWhenNameMatchesGivenTypeName()70%n/a113311
getPersonAttributeTypeByName_shouldReturnNullWhenNoPersonAttributeTypeMatchGivenTypeName()70%n/a113311
getRelationshipTypeByName_shouldReturnNullWhenNoRelationshipTypeMatchTheGivenName()70%n/a113311
static {...}60%n/a111111
getPersonMergeLogByUuid_shouldRequireUuid()60%n/a112211
getPersonAddressByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getPersonAttributeByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getPersonAttributeTypeByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getPersonByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getPersonNameByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getRelationshipByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211
getRelationshipTypeByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid()50%n/a112211