Class ExcelFixture
- java.lang.Object
-
- org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
-
- org.apache.causeway.extensions.excel.testing.ExcelFixture
-
- All Implemented Interfaces:
org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy
@Named("causeway.ext.excel.ExcelFixture") public class ExcelFixture extends org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript implements org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy- Since:
- 2.0 {@index}
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOGICAL_TYPE_NAME
-
Constructor Summary
Constructors Constructor Description ExcelFixture(URL excelResource, Class<?>... classes)ExcelFixture(URL excelResource, List<Class<?>> classes)ExcelFixture(org.apache.causeway.applib.value.Blob upload, Class<?>... classes)ExcelFixture(org.apache.causeway.applib.value.Blob blob, List<Class<?>> classes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected voidexecute(org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext ec)org.apache.causeway.applib.value.BlobgetBlob()Input, mandatory ...URLgetExcelResource()Input, mandatory ...StringgetExcelResourceName()Input, optional: defines the name of the resource, used as a suffix to overridegetQualifiedName()(disambiguate items when added toFixtureResultListif multiple instances ofExcelFixtureare used with different excel spreadsheets).org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts.MultipleExecutionStrategygetMultipleExecutionStrategy()ListgetObjects()Output: all the objects created by this fixture.Map<Class<?>,List<Object>>getObjectsByClass()Output: the objects created by this fixture, for a specific persistable/row handler class.StringgetQualifiedName()inthashCode()voidsetBlob(org.apache.causeway.applib.value.Blob blob)Input, mandatory ...voidsetExcelResource(URL excelResource)Input, mandatory ...voidsetExcelResourceName(String excelResourceName)Input, optional: defines the name of the resource, used as a suffix to overridegetQualifiedName()(disambiguate items when added toFixtureResultListif multiple instances ofExcelFixtureare used with different excel spreadsheets).-
Methods inherited from class org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
checkParam, coalesce, defaultParam, friendlyNameElseDerived, getFriendlyName, getLocalName, getParentPath, getServiceInjector, localNameElseDerived, m, mixin, optionalParam, run, setFriendlyName, setLocalName, setParentPath, transactionTemplate, unwrap, validateRun, w, wm, wrap, wrap, wrapMixin
-
-
-
-
Field Detail
-
LOGICAL_TYPE_NAME
public static final String LOGICAL_TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExcelFixture
public ExcelFixture(URL excelResource, Class<?>... classes)
-
ExcelFixture
public ExcelFixture(URL excelResource, List<Class<?>> classes)
-
ExcelFixture
public ExcelFixture(org.apache.causeway.applib.value.Blob upload, Class<?>... classes)
-
ExcelFixture
public ExcelFixture(org.apache.causeway.applib.value.Blob blob, List<Class<?>> classes)
-
-
Method Detail
-
getQualifiedName
public String getQualifiedName()
- Overrides:
getQualifiedNamein classorg.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
-
execute
protected void execute(org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript.ExecutionContext ec)
- Specified by:
executein classorg.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScript
-
getMultipleExecutionStrategy
public org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts.MultipleExecutionStrategy getMultipleExecutionStrategy()
- Specified by:
getMultipleExecutionStrategyin interfaceorg.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScriptWithExecutionStrategy
-
getExcelResourceName
public String getExcelResourceName()
Input, optional: defines the name of the resource, used as a suffix to overridegetQualifiedName()(disambiguate items when added toFixtureResultListif multiple instances ofExcelFixtureare used with different excel spreadsheets).
-
setExcelResourceName
public void setExcelResourceName(String excelResourceName)
Input, optional: defines the name of the resource, used as a suffix to overridegetQualifiedName()(disambiguate items when added toFixtureResultListif multiple instances ofExcelFixtureare used with different excel spreadsheets).
-
getExcelResource
public URL getExcelResource()
Input, mandatory ... the Excel spreadsheet to read.
-
setExcelResource
public void setExcelResource(URL excelResource)
Input, mandatory ... the Excel spreadsheet to read.
-
getBlob
public org.apache.causeway.applib.value.Blob getBlob()
Input, mandatory ... the Excel spreadsheet to read.
-
setBlob
public void setBlob(org.apache.causeway.applib.value.Blob blob)
Input, mandatory ... the Excel spreadsheet to read.
-
getObjects
public List getObjects()
Output: all the objects created by this fixture.
-
getObjectsByClass
public Map<Class<?>,List<Object>> getObjectsByClass()
Output: the objects created by this fixture, for a specific persistable/row handler class.
-
-