'How to mock a google sheet call
Heading
I have a function that gets all rows of a spreadsheet, and I'm trying to write a unit test for this function.
sheet.spreadsheets().values().get(spreadsheet_id, range).execute()
I have fake values for the spreadsheet_id and range, but how do I pass a fake sheet? I'm using Java.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
