Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
PaRangger committed Mar 6, 2025
1 parent 86b0e19 commit 6be0244
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ void shouldCreateCourseNotificationWhenSending() {
assertThat(savedEntity.getCourse().getId()).isEqualTo(123L);
assertThat(savedEntity.getType()).isEqualTo((short) 1);

verify(courseNotificationParameterRepository, times(2)).save(any(CourseNotificationParameter.class));
ArgumentCaptor<Iterable<CourseNotificationParameter>> captor = ArgumentCaptor.forClass((Class) Iterable.class);

verify(courseNotificationParameterRepository, times(1)).saveAll(captor.capture());
}

@Test
Expand Down

0 comments on commit 6be0244

Please sign in to comment.