import org.apache.poi.ss.usermodel.Cell; //導入方法依賴的package包/類
/**
* Parses the test case data (the data between TEST_CASE_START and TEST_CASE_END commented cells) from the
* excel spreadsheet and loads it into a two-dimensional Object[][] array - workingObjectArray
*/
private void loadDataBlock(
Method method ) throws DataProviderException {
Sheet sheet = excelFileWorkbook.getSheet(this.sheetName);
if (sheet == null) {
throw new DataProviderException(UNABLE_TO_LOAD_SHEETS + this.sheetName);
}
//Get the starting cell coordinates
Cell startingCell = getStartingCell(sheet);
int startCol = startingCell.getColumnIndex();
int startRow = startingCell.getRowIndex();
//Get the ending cell coordinates
Cell endingCell = getEndingCell(sheet);
int endCol = endingC