Skip to content

Commit

Permalink
Update EventHandlerServiceTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SodhiA1 committed Nov 30, 2023
1 parent a0305cb commit ef3c3b3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ public void testHandleEvent_givenEventTypeMOVE_SCHOOL__DoesExistAndSynchronousNa
schoolRepository.save(fromSchoolEntity);

School toSchool = new School();
toSchool.setGrades(List.of(createSchoolGrade()));
toSchool.setNeighborhoodLearning(List.of(createNeighborhoodLearning()));
toSchool.setAddresses(List.of(createSchoolAddress()));
SchoolMapper map = SchoolMapper.mapper;

BeanUtils.copyProperties(map.toStructure(toSchoolEntity), toSchool);
Expand Down

0 comments on commit ef3c3b3

Please sign in to comment.