public class TestTableBuilder extends TableBuilder
HEADER_HEIGHT, PROPERTIES_MIN_WIDTH, TABLE_PROPERTIES| Constructor and Description |
|---|
TestTableBuilder(XlsSheetGridModel gridModel)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultTechnicalName(TableSyntaxNode executableNode)
Gets the default technical name for new test table.
|
static String |
getHeader(TableSyntaxNode executableNode,
String technicalName)
Returns table header.
|
static Map<String,String> |
getParams(TableSyntaxNode executableNode)
Returns table parameters.
|
void |
writeParams(Map<String,String> params,
String resultTitle)
Writes test table parameters.
|
beginTable, beginTable, endTable, getCurrentRow, getDefaultCellStyle, getDefaultDateCellStyle, getGridModel, getHeight, getTableRegion, getWidth, incCurrentRow, incCurrentRow, save, writeCell, writeCell, writeCell, writeGridTable, writeHeader, writePropertiespublic TestTableBuilder(XlsSheetGridModel gridModel)
gridModel - represents interface for operations with excel sheetspublic static String getHeader(TableSyntaxNode executableNode, String technicalName)
executableNode - Executable nodetechnicalName - Technical name of the table. If null or empty we get default technical name. It
is building with table name and postfix 'Test'.public static String getDefaultTechnicalName(TableSyntaxNode executableNode)
TableSyntaxNode and if it is not null calls
getDefaultTechnicalName(ExecutableMethod).executableNode - TableSyntaxNode that is executable (see Executable)from which we tries
to get the ExecutableRulesMethod.public static Map<String,String> getParams(TableSyntaxNode executableNode)
executableNode - Executable nodepublic void writeParams(Map<String,String> params, String resultTitle)
params - test table parametersresultTitle - result parameter titleIllegalArgumentException - if params is nullIllegalStateException - if method is called without prior beginTable() callCopyright © 2004–2019 OpenL Tablets. All rights reserved.