From 91d6d4ca636362826200b31e58b7bcef2c25a794 Mon Sep 17 00:00:00 2001
From: Muhammad Raihan Akbar <ianakbar711@gmail.com>
Date: Thu, 6 Mar 2025 22:18:44 +0700
Subject: [PATCH] [REFACTOR] Fixed maintainability issues on
 GoogleAuthServiceTest

---
 .../authentication/service/GoogleAuthServiceTest.java        | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/test/java/com/safetypin/authentication/service/GoogleAuthServiceTest.java b/src/test/java/com/safetypin/authentication/service/GoogleAuthServiceTest.java
index 23fcccd..a411399 100644
--- a/src/test/java/com/safetypin/authentication/service/GoogleAuthServiceTest.java
+++ b/src/test/java/com/safetypin/authentication/service/GoogleAuthServiceTest.java
@@ -1,6 +1,5 @@
 package com.safetypin.authentication.service;
 
-import ch.qos.logback.core.Appender;
 import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest;
 import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken;
 import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier;
@@ -319,7 +318,7 @@ class GoogleAuthServiceTest {
     }
 
     @Test
-    void getUserBirthdate_Success() throws Exception {
+    void getUserBirthdate_Success() {
         // Setup private method mocking
         doReturn("test-json-response").when(googleAuthService).fetchUserData(anyString());
 
@@ -375,7 +374,7 @@ class GoogleAuthServiceTest {
     }
 
     @Test
-    void testFetchUserData_Successful() throws Exception {
+    void testFetchUserData_Successful() {
         // Create a test GoogleAuthService with a protected method for URL creation
         GoogleAuthService spyService = spy(new GoogleAuthService(userService, jwtService) {
             @Override
-- 
GitLab