public abstract class AbstractTestData
| Modifiers | Name | Description |
|---|---|---|
protected boolean |
hasHeaders |
|
protected Map<String, String> |
properties |
|
protected String |
sourceUrl |
| Constructor and description |
|---|
protected AbstractTestData
(String sourceUrl, boolean hasHeaders) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
activeHeaders(boolean active)Set if this test data has headers |
|
public TestDataInfo |
getDataInfo() |
|
protected int |
getHeaderRowIdx() |
|
public final Object |
getObjectValue(int columnIndex, int rowIndex)Get raw value of the test data at a cell with the column index and row index |
|
public final Object |
getObjectValue(String columnName, int rowIndex)Get raw value of the test data at a cell with the column name and row index |
|
public String |
getProperty(String key) |
|
public final String |
getSourceUrl()Get the url of the data source |
|
public final String |
getValue(int columnIndex, int rowIndex)Get value (in String) of the test data at a cell with the column index and row index |
|
public final String |
getValue(String columnName, int rowIndex)Get value (in String) of the test data at a cell with the column name and row index |
|
public final boolean |
hasHeaders()Check if this test data has headers |
|
protected abstract Object |
internallyGetValue(int columnIndex, int rowIndex) |
|
protected abstract Object |
internallyGetValue(String columnName, int rowIndex) |
|
public void |
setProperty(String key, String value) |
|
protected void |
verifyColumnIndex(int columnIndex) |
|
protected void |
verifyColumnName(String columnName) |
|
protected void |
verifyRowIndex(int rowIndex) |
Set if this test data has headers
active - true to set this test data to use headersGet raw value of the test data at a cell with the column index and row index
columnIndex - index of the column, starting from 1rowIndex - row numberGet raw value of the test data at a cell with the column name and row index
columnName - column namerowIndex - row index (row number), starting from 1Get the url of the data source
Get value (in String) of the test data at a cell with the column index and row index
columnIndex - column index (column number), starting from 1rowIndex - row index (row number), starting from 1Get value (in String) of the test data at a cell with the column name and row index
columnName - column namerowIndex - row index (row number), starting from 1Check if this test data has headers