use of com.google.cloud.bigquery.datatransfer.v1.DataSource in project atlasmap by atlasmap.
the class AtlasEndpointTest method testDocId.
@Test
public void testDocId() throws Exception {
List<DataSource> ds = new ArrayList<>();
DataSource source = new DataSource();
source.setDataSourceType(DataSourceType.SOURCE);
source.setId("my-source-doc");
ds.add(source);
DataSource target = new DataSource();
target.setDataSourceType(DataSourceType.TARGET);
target.setId("my-target-doc");
ds.add(target);
perform(ds, "my-source-doc", "my-target-doc", false);
}
use of com.google.cloud.bigquery.datatransfer.v1.DataSource in project atlasmap by atlasmap.
the class AtlasEndpointTest method noConversionIfJavaDataSource.
@Test(expected = ComparisonFailure.class)
public void noConversionIfJavaDataSource() throws Exception {
final List<DataSource> dataSources = new ArrayList<>();
final DataSource dataSource = new DataSource();
dataSource.setDataSourceType(DataSourceType.SOURCE);
dataSource.setUri("atlas:java:some.Type");
dataSources.add(dataSource);
perform(dataSources, null, null, true);
}
use of com.google.cloud.bigquery.datatransfer.v1.DataSource in project atlasmap by atlasmap.
the class JavaValidationServiceTest method generateDataSource.
protected DataSource generateDataSource(String uri, DataSourceType type, String docId) {
DataSource ds = new DataSource();
ds.setUri(uri);
ds.setDataSourceType(type);
ds.setId(docId);
return ds;
}
use of com.google.cloud.bigquery.datatransfer.v1.DataSource in project atlasmap by atlasmap.
the class BaseMarshallerTest method generateDataSource.
private DataSource generateDataSource(String id, String uri, DataSourceType type) {
DataSource dataSource = new DataSource();
dataSource.setId(id);
dataSource.setUri(uri);
dataSource.setDataSourceType(type);
return dataSource;
}
use of com.google.cloud.bigquery.datatransfer.v1.DataSource in project atlasmap by atlasmap.
the class JsonJsonFlatMappingTest method generateDataSource.
protected DataSource generateDataSource(String uri, DataSourceType type) {
DataSource ds = new DataSource();
ds.setUri(uri);
ds.setDataSourceType(type);
return ds;
}
Aggregations