use of io.atlasmap.validators.AtlasValidationTestHelper in project atlasmap by atlasmap.
the class XmlValidationServiceTest method setUp.
@Before
public void setUp() {
xmlModelFactory = new io.atlasmap.xml.v2.ObjectFactory();
mappingUtil = new AtlasMappingUtil("io.atlasmap.v2:io.atlasmap.xml.v2");
moduleDetail = XmlModule.class.getAnnotation(AtlasModuleDetail.class);
sourceValidationService = new XmlValidationService(DefaultAtlasConversionService.getInstance());
sourceValidationService.setMode(AtlasModuleMode.SOURCE);
targetValidationService = new XmlValidationService(DefaultAtlasConversionService.getInstance());
targetValidationService.setMode(AtlasModuleMode.TARGET);
validationHelper = new AtlasValidationTestHelper();
validations = validationHelper.getValidation();
}
use of io.atlasmap.validators.AtlasValidationTestHelper in project atlasmap by atlasmap.
the class JavaValidationServiceTest method setUp.
@Before
public void setUp() {
javaModelFactory = new io.atlasmap.java.v2.ObjectFactory();
mappingUtil = new AtlasMappingUtil("io.atlasmap.v2:io.atlasmap.java.v2");
moduleDetail = JavaModule.class.getAnnotation(AtlasModuleDetail.class);
sourceValidationService = new JavaValidationService(DefaultAtlasConversionService.getInstance());
sourceValidationService.setMode(AtlasModuleMode.SOURCE);
sourceValidationService.setDocId(AtlasConstants.DEFAULT_SOURCE_DOCUMENT_ID);
targetValidationService = new JavaValidationService(DefaultAtlasConversionService.getInstance());
targetValidationService.setMode(AtlasModuleMode.TARGET);
targetValidationService.setDocId(AtlasConstants.DEFAULT_TARGET_DOCUMENT_ID);
validationHelper = new AtlasValidationTestHelper();
validations = validationHelper.getValidation();
}
use of io.atlasmap.validators.AtlasValidationTestHelper in project atlasmap by atlasmap.
the class JsonValidationServiceTest method setUp.
@Before
public void setUp() {
jsonModelFactory = new io.atlasmap.json.v2.ObjectFactory();
mappingUtil = new AtlasMappingUtil("io.atlasmap.v2:io.atlasmap.json.v2");
moduleDetail = JsonModule.class.getAnnotation(AtlasModuleDetail.class);
sourceValidationService = new JsonValidationService(DefaultAtlasConversionService.getInstance());
sourceValidationService.setMode(AtlasModuleMode.SOURCE);
targetValidationService = new JsonValidationService(DefaultAtlasConversionService.getInstance());
targetValidationService.setMode(AtlasModuleMode.TARGET);
validationHelper = new AtlasValidationTestHelper();
validations = validationHelper.getValidation();
}
Aggregations