use of io.atlasmap.v2.DataSource in project atlasmap by atlasmap.
the class AtlasEndpointTest method noConversionIfXmlTargetDataSource.
@Test(expected = ComparisonFailure.class)
public void noConversionIfXmlTargetDataSource() throws Exception {
final List<DataSource> dataSources = new ArrayList<>();
final DataSource dataSource = new DataSource();
dataSource.setDataSourceType(DataSourceType.TARGET);
dataSource.setUri("atlas:xml:SomeType");
dataSources.add(dataSource);
perform(dataSources, null, null, true);
}
use of io.atlasmap.v2.DataSource in project atlasmap by atlasmap.
the class AtlasEndpointTest method doConversionIfXmlDataSource.
@Test
public void doConversionIfXmlDataSource() throws Exception {
final List<DataSource> dataSources = new ArrayList<>();
final DataSource dataSource = new DataSource();
dataSource.setDataSourceType(DataSourceType.SOURCE);
dataSource.setUri("atlas:xml:SomeType");
dataSources.add(dataSource);
perform(dataSources, null, null, true);
}
use of io.atlasmap.v2.DataSource in project atlasmap by atlasmap.
the class XmlJsonFlatMappingTest method generateDataSource.
protected DataSource generateDataSource(String uri, DataSourceType type) {
DataSource ds = new DataSource();
ds.setUri(uri);
ds.setDataSourceType(type);
return ds;
}
use of io.atlasmap.v2.DataSource in project atlasmap by atlasmap.
the class XmlJavaFlatMappingTest method generateDataSource.
protected DataSource generateDataSource(String uri, DataSourceType type) {
DataSource ds = new DataSource();
ds.setUri(uri);
ds.setDataSourceType(type);
return ds;
}
use of io.atlasmap.v2.DataSource in project atlasmap by atlasmap.
the class JsonJavaFlatMappingTest method generateDataSource.
protected DataSource generateDataSource(String uri, DataSourceType type) {
DataSource ds = new DataSource();
ds.setUri(uri);
ds.setDataSourceType(type);
return ds;
}
Aggregations