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 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.ObjectWriter>getObjectWriter(PipelineModel.Serialisation outputSerialisation) 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) 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_ISO20022_PATH
-
PROJECTION_OUTPUT_PATH
-
PROJECTION_CONFIG_PATH
-
REPORT_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 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) -
getObjectWriter
public static Optional<com.fasterxml.jackson.databind.ObjectWriter> getObjectWriter(PipelineModel.Serialisation outputSerialisation) -
getProjectionTestPackName
-
getReportTestPackName
-
findPaths
-
readFile
-