Class ReportTestExtension<T extends com.rosetta.model.lib.RosettaModelObject>

java.lang.Object
com.regnosys.testing.reports.ReportTestExtension<T>
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension

public class ReportTestExtension<T extends com.rosetta.model.lib.RosettaModelObject> extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
  • Constructor Details

    • ReportTestExtension

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

    • withRootExpectationsPath

      public ReportTestExtension<T> withRootExpectationsPath(Path rootExpectationsPath)
    • withTestPackFileName

      public ReportTestExtension<T> withTestPackFileName(String testPackFileName)
    • beforeAll

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

      public <In extends com.rosetta.model.lib.RosettaModelObject, Out extends com.rosetta.model.lib.RosettaModelObject> void runReportAndAssertExpected(String testPackId, String pipeLineId, String datasetName, com.regnosys.rosetta.common.transform.TestPackModel.SampleModel sampleModel, com.rosetta.model.lib.reports.ReportFunction<In,Out> reportFunction, com.rosetta.model.lib.reports.Tabulator<Out> tabulator, In input) throws IOException
      Throws:
      IOException
    • afterAll

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

      public Stream<org.junit.jupiter.params.provider.Arguments> getArguments()
    • getArguments

      public Stream<org.junit.jupiter.params.provider.Arguments> getArguments(List<URL> expectationFiles)
    • getRuntimeModule

      public com.google.inject.Module getRuntimeModule()