Package com.regnosys.testing.projection
Class ProjectionTestExtension<IN extends com.rosetta.model.lib.RosettaModelObject,OUT extends com.rosetta.model.lib.RosettaModelObject>
java.lang.Object
com.regnosys.testing.projection.ProjectionTestExtension<IN,OUT>
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension
public class ProjectionTestExtension<IN extends com.rosetta.model.lib.RosettaModelObject,OUT extends com.rosetta.model.lib.RosettaModelObject>
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionTestExtension(com.google.inject.Module runtimeModule, Class<IN> inputType) ProjectionTestExtension(com.google.inject.Module runtimeModule, Class<IN> inputType, URL xsdSchema, URL xmlConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) Stream<org.junit.jupiter.params.provider.Arguments>getXmlExpectedAndActual(Path expectationPath, Object xmlResult) voidrunProjectionAndAssert(String testPackId, String pipelineId, String dataSetName, com.regnosys.rosetta.common.transform.TestPackModel.SampleModel sampleModel, Function<IN, OUT> functionExecutionCallback, IN input, com.rosetta.model.lib.reports.Tabulator<OUT> tabulator) withRegBody(String regBody) withRootExpectationsPath(Path rootExpectationsPath) withWriterAndValidator(URL xmlConfig, URL xsdSchema)
-
Constructor Details
-
ProjectionTestExtension
-
ProjectionTestExtension
-
-
Method Details
-
withRootExpectationsPath
-
withRegBody
-
withWriterAndValidator
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-
getArguments
-
runProjectionAndAssert
public void runProjectionAndAssert(String testPackId, String pipelineId, String dataSetName, com.regnosys.rosetta.common.transform.TestPackModel.SampleModel sampleModel, Function<IN, OUT> functionExecutionCallback, IN input, com.rosetta.model.lib.reports.Tabulator<OUT> tabulator) throws IOException- Throws:
IOException
-
getXmlExpectedAndActual
public ExpectedAndActual<String> getXmlExpectedAndActual(Path expectationPath, Object xmlResult) throws IOException - Throws:
IOException
-