Package com.regnosys.testing.reports
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 Summary
ConstructorsConstructorDescriptionReportTestExtension(com.google.inject.Module runtimeModule, Class<T> inputType) -
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>Stream<org.junit.jupiter.params.provider.Arguments>getArguments(List<URL> expectationFiles) com.google.inject.Module<In extends com.rosetta.model.lib.RosettaModelObject,Out extends com.rosetta.model.lib.RosettaModelObject>
voidrunReportAndAssertExpected(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) withRootExpectationsPath(Path rootExpectationsPath) withTestPackFileName(String testPackFileName)
-
Constructor Details
-
ReportTestExtension
-
-
Method Details
-
withRootExpectationsPath
-
withTestPackFileName
-
beforeAll
@BeforeAll public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAllin interfaceorg.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:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
IOException
-
getArguments
-
getArguments
-
getRuntimeModule
public com.google.inject.Module getRuntimeModule()
-