Package org.qubership.atp.tdm.utils
Class TestDataTableConvertor
java.lang.Object
org.qubership.atp.tdm.utils.TestDataTableConvertor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileconvertTableToCsvFile(String tableName, List<TestDataTableColumn> columns, ResultSet resultSet) Create an .csv file from given table.static FileconvertTableToExcelFile(String tableName, List<TestDataTableColumn> columns, ResultSet resultSet) Create an .xlsx file from given table.static Stringstatic StringreplaceParams(Map<String, Object> hashMap, String template) Linker placeholders resolver.
-
Constructor Details
-
TestDataTableConvertor
public TestDataTableConvertor()
-
-
Method Details
-
generateTestDataTableName
-
convertTableToExcelFile
public static File convertTableToExcelFile(String tableName, List<TestDataTableColumn> columns, ResultSet resultSet) throws IOException, SQLException Create an .xlsx file from given table.- Returns:
- fn .xlsx file
- Throws:
IOExceptionSQLException
-
convertTableToCsvFile
public static File convertTableToCsvFile(String tableName, List<TestDataTableColumn> columns, ResultSet resultSet) throws IOException, SQLException Create an .csv file from given table.- Returns:
- fn .csv file
- Throws:
IOExceptionSQLException
-
replaceParams
Linker placeholders resolver.- Parameters:
hashMap- - columns hashmap.template- - column link.- Returns:
- - renewed link.
-