У меня есть метод, который возвращает Mono
Код: Выделить всё
public Mono deleteMethod(Post post) {
return statusRepository.delete(post);
}
Код: Выделить всё
given(statusRepository.delete(any(Post.class))).willReturn(Mono.empty());
Может ли кто-нибудь мне помочь?
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/571 ... s-monovoid
Мобильная версия