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 Details

    • ProjectionTestExtension

      public ProjectionTestExtension(com.google.inject.Module runtimeModule, Class<IN> inputType, URL xsdSchema, URL xmlConfig)
    • ProjectionTestExtension

      public ProjectionTestExtension(com.google.inject.Module runtimeModule, Class<IN> inputType)
  • Method Details

    • withRootExpectationsPath

      public ProjectionTestExtension<IN,OUT> withRootExpectationsPath(Path rootExpectationsPath)
    • withRegBody

      public ProjectionTestExtension<IN,OUT> withRegBody(String regBody)
    • withWriterAndValidator

      public ProjectionTestExtension<IN,OUT> withWriterAndValidator(URL xmlConfig, URL xsdSchema)
    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
      Throws:
      Exception
    • getArguments

      public Stream<org.junit.jupiter.params.provider.Arguments> 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