Skip to content

Commit

Permalink
fix: credentials 주입 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 17, 2024
1 parent c5eaadb commit 15a8707
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
public class GoogleConfig {
private final GoogleCredentials googleCredentials;

private final String APPLICATION_NAME = "Google Sheets API Java Quickstart";
private final JsonFactory JSON_FACTORY = GsonFactory.getDefaultInstance();

private final List<String> SCOPES = Collections.singletonList(SheetsScopes.SPREADSHEETS);
Expand All @@ -42,6 +41,7 @@ public class GoogleConfig {
public Sheets getGoogleSheetService() throws GeneralSecurityException, IOException {
final NetHttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();

String APPLICATION_NAME = "Google Sheets API Java Quickstart";
return new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))
.setApplicationName(APPLICATION_NAME)
.build();
Expand Down

0 comments on commit 15a8707

Please sign in to comment.