Search in sources :

Example 1 with AtlasValidationTestHelper

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();
}
Also used : AtlasMappingUtil(io.atlasmap.core.AtlasMappingUtil) AtlasValidationTestHelper(io.atlasmap.validators.AtlasValidationTestHelper) AtlasModuleDetail(io.atlasmap.spi.AtlasModuleDetail) Before(org.junit.Before)

Example 2 with AtlasValidationTestHelper

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();
}
Also used : AtlasMappingUtil(io.atlasmap.core.AtlasMappingUtil) AtlasValidationTestHelper(io.atlasmap.validators.AtlasValidationTestHelper) AtlasModuleDetail(io.atlasmap.spi.AtlasModuleDetail) Before(org.junit.Before)

Example 3 with AtlasValidationTestHelper

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();
}
Also used : AtlasMappingUtil(io.atlasmap.core.AtlasMappingUtil) AtlasValidationTestHelper(io.atlasmap.validators.AtlasValidationTestHelper) AtlasModuleDetail(io.atlasmap.spi.AtlasModuleDetail) Before(org.junit.Before)

Aggregations

AtlasMappingUtil (io.atlasmap.core.AtlasMappingUtil)3 AtlasModuleDetail (io.atlasmap.spi.AtlasModuleDetail)3 AtlasValidationTestHelper (io.atlasmap.validators.AtlasValidationTestHelper)3 Before (org.junit.Before)3