We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a33167d commit 85a5da5Copy full SHA for 85a5da5
1 file changed
src/test/java/br/com/developers/login/service/impl/UserServiceImplTest.java
@@ -136,5 +136,10 @@ void shouldDeleteUser(LoginDTO loginDTO) {
136
BDDMockito.given(this.userRepository.findByEmail(loginDTO.getEmail().toLowerCase()))
137
.willReturn(Optional.of(this.user));
138
BDDMockito.doNothing().when(this.userRepository).delete(this.user);
139
+
140
+ this.service.delete(loginDTO);
141
142
+ verify(this.userRepository, times(1)).findByEmail(anyString());
143
+ verify(this.userRepository, times(1)).delete(any(User.class));
144
}
145
0 commit comments