Class SharedTestMethods
- java.lang.Object
-
- org.eclipse.epsilon.emc.spreadsheets.test.SharedTestMethods
-
public class SharedTestMethods extends Object
-
-
Constructor Summary
Constructors Constructor Description SharedTestMethods()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearWorksheet(SpreadsheetModel model, String worksheetName)
static String
getBasePath()
static void
superficialEnumCodeCoverage(Class<? extends Enum<?>> enumClass)
This method should be called to test ENUM classes.static SpreadsheetRow
writeRow(SpreadsheetModel model, String worksheetName, String id, String columnName, String value)
static SpreadsheetRow
writeRow(SpreadsheetModel model, String worksheetName, String idCol, String id, String columnName, String value)
static SpreadsheetRow
writeRow(SpreadsheetModel model, String worksheetName, String idCol, String id, String columnName, SpreadsheetRow referencedRow)
static SpreadsheetRow
writeRow(SpreadsheetModel model, String worksheetName, String id, String columnName, SpreadsheetRow referencedRow)
-
-
-
Method Detail
-
superficialEnumCodeCoverage
public static void superficialEnumCodeCoverage(Class<? extends Enum<?>> enumClass)
This method should be called to test ENUM classes. This will achieve 100% coverage on them. Serves no purpose apart from getting the satisfaction of seeing 100%. http://stackoverflow.com/questions/4512358/emma-coverage-on-enum-types- Parameters:
enumClass
-
-
clearWorksheet
public static void clearWorksheet(SpreadsheetModel model, String worksheetName) throws EolRuntimeException
- Throws:
EolRuntimeException
-
writeRow
public static SpreadsheetRow writeRow(SpreadsheetModel model, String worksheetName, String id, String columnName, String value) throws EolModelElementTypeNotFoundException
-
writeRow
public static SpreadsheetRow writeRow(SpreadsheetModel model, String worksheetName, String idCol, String id, String columnName, String value) throws EolModelElementTypeNotFoundException
-
writeRow
public static SpreadsheetRow writeRow(SpreadsheetModel model, String worksheetName, String id, String columnName, SpreadsheetRow referencedRow) throws EolModelElementTypeNotFoundException
-
writeRow
public static SpreadsheetRow writeRow(SpreadsheetModel model, String worksheetName, String idCol, String id, String columnName, SpreadsheetRow referencedRow) throws EolModelElementTypeNotFoundException
-
getBasePath
public static String getBasePath()
-
-