Skip to content

Commit

Permalink
#10496 - Change unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MateStrysewske committed Sep 30, 2022
1 parent 9986021 commit 80cb0bd
Showing 1 changed file with 18 additions and 18 deletions.
Expand Up @@ -525,12 +525,12 @@ public void testMovingCaseUpdatesTaskAssigneeAndCreatesPreviousHospitalization()
creator.getUserRoleReference(DefaultUserRole.CASE_OFFICER));

UserDto user = creator.createUser(
rdcf.region.getUuid(),
rdcf.district.getUuid(),
rdcf.facility.getUuid(),
"Surv",
"Off",
creator.getUserRoleReference(DefaultUserRole.SURVEILLANCE_OFFICER));
rdcf.region.getUuid(),
rdcf.district.getUuid(),
rdcf.facility.getUuid(),
"Surv",
"Off",
creator.getUserRoleReference(DefaultUserRole.SURVEILLANCE_OFFICER));
loginWith(user);

PersonDto cazePerson = creator.createPerson("Case", "Person");
Expand Down Expand Up @@ -1411,7 +1411,7 @@ public void testOutcomePersonConditionUpdate() {
firstCase = getCaseFacade().save(firstCase);
cazePerson = getPersonFacade().getPersonByUuid(cazePerson.getUuid());
assertNull(firstCase.getOutcomeDate());
assertEquals(PresentCondition.ALIVE, cazePerson.getPresentCondition());
assertEquals(PresentCondition.UNKNOWN, cazePerson.getPresentCondition());
assertNull(cazePerson.getDeathDate());

// additional, newer cases for the the person
Expand Down Expand Up @@ -2093,17 +2093,17 @@ public void testMergeCaseWithDuplicatedVaccines() {
null,
null);
creator.createVaccinationWithDetails(
followUser.toReference(),
followImmunizationDto.toReference(),
healthConditions,
calendar.getTime(),
Vaccine.COMIRNATY,
VaccineManufacturer.BIONTECH_PFIZER,
VaccinationInfoSource.ORAL_COMMUNICATION,
null,
null,
"abc",
null);
followUser.toReference(),
followImmunizationDto.toReference(),
healthConditions,
calendar.getTime(),
Vaccine.COMIRNATY,
VaccineManufacturer.BIONTECH_PFIZER,
VaccinationInfoSource.ORAL_COMMUNICATION,
null,
null,
"abc",
null);
creator.createVaccinationWithDetails(
followUser.toReference(),
followImmunizationDto.toReference(),
Expand Down

0 comments on commit 80cb0bd

Please sign in to comment.