本文整理汇总了Java中com.google.api.services.sheets.v4.model.AppendValuesResponse类的典型用法代码示例。如果您正苦于以下问题:Java AppendValuesResponse类的具体用法?Java AppendValuesResponse怎么用?Java AppendValuesResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AppendValuesResponse类属于com.google.api.services.sheets.v4.model包,在下文中一共展示了AppendValuesResponse类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: before
import com.google.api.services.sheets.v4.model.AppendValuesResponse; //导入依赖的package包/类
@Before
public void before() throws Exception {
sheetSynchronizer.sheetsService = sheetsService;
when(sheetsService.spreadsheets()).thenReturn(spreadsheets);
when(spreadsheets.values()).thenReturn(values);
when(values.get(any(String.class), any(String.class))).thenReturn(getReq);
when(values.append(any(String.class), any(String.class), any(ValueRange.class)))
.thenReturn(appendReq);
when(values.clear(any(String.class), any(String.class), any(ClearValuesRequest.class)))
.thenReturn(clearReq);
when(values.batchUpdate(any(String.class), any(BatchUpdateValuesRequest.class)))
.thenReturn(updateReq);
when(appendReq.execute()).thenReturn(new AppendValuesResponse());
when(appendReq.setValueInputOption(any(String.class))).thenReturn(appendReq);
when(appendReq.setInsertDataOption(any(String.class))).thenReturn(appendReq);
when(clearReq.execute()).thenReturn(new ClearValuesResponse());
when(updateReq.execute()).thenReturn(new BatchUpdateValuesResponse());
existingSheet = newArrayList();
data = ImmutableList.of();
ValueRange valueRange = new ValueRange().setValues(existingSheet);
when(getReq.execute()).thenReturn(valueRange);
}