Class TestPackUtils
java.lang.Object
com.regnosys.rosetta.common.transform.TestPackUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PipelineModelcreatePipeline(TransformType transformType, String functionQualifiedName, String displayName, String formattedFunctionName, String inputType, String outputType, String upstreamPipelineId, PipelineModel.Serialisation inputSerialisation, PipelineModel.Serialisation outputSerialisation) static TestPackModelcreateTestPack(String testPackName, TransformType transformType, String formattedFunctionName, List<TestPackModel.SampleModel> sampleModels) findPaths(Path basePath, ClassLoader classLoader, String fileName) static Optional<com.fasterxml.jackson.databind.ObjectMapper>getObjectMapper(PipelineModel.Serialisation serialisation) static Optional<com.fasterxml.jackson.databind.ObjectWriter>getObjectWriter(PipelineModel.Serialisation serialisation) static PipelineModelgetPipelineModel(List<PipelineModel> pipelineModels, String functionName) static List<PipelineModel>getPipelineModels(Path resourcePath, ClassLoader classLoader, com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper) static StringgetProjectionTestPackName(String reportId) Deprecated.static StringgetReportTestPackName(String reportId) static List<TestPackModel>getTestPackModels(Path resourcePath, ClassLoader classLoader, com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper) static List<TestPackModel>getTestPackModels(List<TestPackModel> testPackModels, String pipelineId) static <T> T
-
Field Details
-
PROJECTION_PATH
-
PROJECTION_CONFIG_PATH_WITHOUT_ISO20022
-
REPORT_CONFIG_PATH
-
INGEST_CONFIG_PATH
-
-
Constructor Details
-
TestPackUtils
public TestPackUtils()
-
-
Method Details
-
createTestPack
public static TestPackModel createTestPack(String testPackName, TransformType transformType, String formattedFunctionName, List<TestPackModel.SampleModel> sampleModels) -
createPipeline
public static PipelineModel createPipeline(TransformType transformType, String functionQualifiedName, String displayName, String formattedFunctionName, String inputType, String outputType, String upstreamPipelineId, PipelineModel.Serialisation inputSerialisation, PipelineModel.Serialisation outputSerialisation) -
getPipelineModels
public static List<PipelineModel> getPipelineModels(Path resourcePath, ClassLoader classLoader, com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper) -
getPipelineModel
public static PipelineModel getPipelineModel(List<PipelineModel> pipelineModels, String functionName) -
getTestPackModels
public static List<TestPackModel> getTestPackModels(Path resourcePath, ClassLoader classLoader, com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper) -
getTestPackModels
public static List<TestPackModel> getTestPackModels(List<TestPackModel> testPackModels, String pipelineId) -
getObjectMapper
public static Optional<com.fasterxml.jackson.databind.ObjectMapper> getObjectMapper(PipelineModel.Serialisation serialisation) -
getObjectWriter
public static Optional<com.fasterxml.jackson.databind.ObjectWriter> getObjectWriter(PipelineModel.Serialisation serialisation) -
getProjectionTestPackName
Deprecated. -
getReportTestPackName
-
findPaths
-
readFile
-