Можно ли это сделать?
Код: Выделить всё
public void verifyProfileOnce(UserId userId, Profile profile) {
verify(profileClientMockBean, atLeastOnce()).valid(eq(userId), argThat(capturedList -> capturedList.stream().filter(capturedProfile -> profile.equals(capturedProfile)).count() == 1));
}
Код: Выделить всё
void valid(UserId userId, List profile);
Код: Выделить всё
profileMock.verifyProfileOnce(userId.toString(),builder().name(TEST).email("test@test").address("qwerty").comment("First test").build());
Подробнее здесь: https://stackoverflow.com/questions/784 ... ull-fields