@Test(expected = IllegalArgumentException.class) public void updateRowShouldThrowErrorWhenValueRangeIsNull() throws IOException { sheetsHelper.updateRow("spreadsheet_id", "sheet_name", null); }
public void updateRow(String spreadsheetId, String sheetName, ValueRange row) throws IOException { if (row == null) { throw new IllegalArgumentException("ValueRange cannot be null"); } sheetsService.updateRow(spreadsheetId, sheetName, row); }
SheetsHelper { public void updateRow(String spreadsheetId, String sheetName, ValueRange row) throws IOException { if (row == null) { throw new IllegalArgumentException("ValueRange cannot be null"); } sheetsService.updateRow(spreadsheetId, sheetName, row); } }
SheetsHelper { public void updateRow(String spreadsheetId, String sheetName, ValueRange row) throws IOException { if (row == null) { throw new IllegalArgumentException("ValueRange cannot be null"); } sheetsService.updateRow(spreadsheetId, sheetName, row); } SheetsHelper(GoogleAccountCredential credential, HttpTransport transport, JsonFactory jsonFactory);   SheetsHelper(@NonNull SheetsService sheetsService); }
SheetsHelper { public void updateRow(String spreadsheetId, String sheetName, ValueRange row) throws IOException { if (row == null) { throw new IllegalArgumentException("ValueRange cannot be null"); } sheetsService.updateRow(spreadsheetId, sheetName, row); } SheetsHelper(GoogleAccountCredential credential, HttpTransport transport, JsonFactory jsonFactory);   SheetsHelper(@NonNull SheetsService sheetsService); void resizeSpreadSheet(String spreadsheetId, int sheetId, int columnSize); void insertRow(String spreadsheetId, String sheetName, ValueRange row); void updateRow(String spreadsheetId, String sheetName, ValueRange row); void addSheet(String spreadsheetId, String sheetName); List<List<Object>> getSheetCells(String spreadsheetId, String sheetName); Spreadsheet getSpreadsheet(String spreadsheetId); }
SheetsHelper { public void updateRow(String spreadsheetId, String sheetName, ValueRange row) throws IOException { if (row == null) { throw new IllegalArgumentException("ValueRange cannot be null"); } sheetsService.updateRow(spreadsheetId, sheetName, row); } SheetsHelper(GoogleAccountCredential credential, HttpTransport transport, JsonFactory jsonFactory);   SheetsHelper(@NonNull SheetsService sheetsService); void resizeSpreadSheet(String spreadsheetId, int sheetId, int columnSize); void insertRow(String spreadsheetId, String sheetName, ValueRange row); void updateRow(String spreadsheetId, String sheetName, ValueRange row); void addSheet(String spreadsheetId, String sheetName); List<List<Object>> getSheetCells(String spreadsheetId, String sheetName); Spreadsheet getSpreadsheet(String spreadsheetId);  }