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 inputType, String outputType, String upstreamPipelineId, PipelineModel.Serialisation inputSerialisation, PipelineModel.Serialisation outputSerialisation, String modelId) static StringcreatePipelineId(TransformType transformType, String modelId, String functionQualifiedName) static TestPackModelcreateTestPack(String testPackName, TransformType transformType, String modelId, 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 PipelineModelgetPipelineModel(List<PipelineModel> pipelineModels, String functionName, String modelId) static List<PipelineModel> getPipelineModels(Path resourcePath, ClassLoader classLoader, com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper) static List<PipelineModel> getPipelineModels(List<PipelineModel> pipelineModels, String functionName) static StringgetReportTestPackName(String reportId) static PipelineModel.SerialisationgetSerialisation(String xmlConfigPath) 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
-
PROJECTION_CONFIG_PATH_WITHOUT_ISO20022
Deprecated. -
REPORT_CONFIG_PATH
-
INGEST_CONFIG_PATH
-
-
Constructor Details
-
TestPackUtils
public TestPackUtils()
-
-
Method Details
-
createTestPack
public static TestPackModel createTestPack(String testPackName, TransformType transformType, String modelId, String formattedFunctionName, List<TestPackModel.SampleModel> sampleModels) -
createPipelineId
public static String createPipelineId(TransformType transformType, String modelId, String functionQualifiedName) -
createPipeline
public static PipelineModel createPipeline(TransformType transformType, String functionQualifiedName, String displayName, String inputType, String outputType, String upstreamPipelineId, PipelineModel.Serialisation inputSerialisation, PipelineModel.Serialisation outputSerialisation, String modelId) -
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) -
getPipelineModels
public static List<PipelineModel> getPipelineModels(List<PipelineModel> pipelineModels, String functionName) -
getPipelineModel
public static PipelineModel getPipelineModel(List<PipelineModel> pipelineModels, String functionName, String modelId) -
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) -
getReportTestPackName
-
findPaths
-
readFile
-
getSerialisation
-