Skip to content

Commit 217f918

Browse files
committed
sonar test convention findings
1 parent 79cbaba commit 217f918

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/src/test/java/dev/findfirst/security/oauth2/OauthUserServiceTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
*/
4040
@ExtendWith(MockitoExtension.class)
41-
public class OauthUserServiceTest {
41+
class OauthUserServiceTest {
4242

4343
@Mock
4444
UserRepo userRepo;
@@ -194,7 +194,6 @@ void strangeSignupError()
194194

195195
when(defaultOAuth2UserService.loadUser(request)).thenReturn(oAuth2User);
196196
when(oAuth2User.getAttributes()).thenReturn(attributes);
197-
// when(userRepo.findByEmail(email)).thenReturn(Optional.ofNullable(null));
198197
when(ums.createNewUserAccount(any())).thenThrow(new UserNameTakenException());
199198

200199
assertThrows(RuntimeException.class, () -> {

0 commit comments

Comments
 (0)