Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
soletsdev committed Feb 21, 2024
1 parent b1df93a commit a3be92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected List<SchoolContact> getStudentRegistrationContactsByMincode(final PenR
return this.getStudentRegistrationContactService().getStudentRegistrationContactsByMincode(penRequestBatchEntity.getMincode());
} catch (final NullPointerException e) {
log.error("Error while trying to get get student registration contact. The student registration contact map is null", e);
return null;
return Collections.emptyList();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public void testGetStudentRegistrationContacts_shouldReturnData() {
when(this.responseMock.bodyToFlux(SchoolContactSearchWrapper.class)).thenReturn(Flux.just(createSchoolContactSearchWrapper()));

final var result = this.restUtils.getStudentRegistrationContactList("10200001");
assertThat(result.size()).isEqualTo(2);
assertThat(result).hasSize(2);
assertThat(result.get(0).getEmail()).isEqualTo("pen@email.com");
assertThat(result.get(0).getFirstName()).isEqualTo("Joe");
assertThat(result.get(1).getEmail()).isEqualTo("2@email.com");
Expand Down

0 comments on commit a3be92f

Please sign in to comment.