use of org.talend.components.service.rest.mock.MockDatastoreProperties in project components by Talend.
the class AbstractSpringIntegrationTests method buildTestDataStoreSerProps.
protected SerPropertiesDto buildTestDataStoreSerProps() throws java.io.IOException {
SerPropertiesDto formDataContainer = new SerPropertiesDto();
formDataContainer.setProperties(new MockDatastoreProperties("").init().toSerialized());
return formDataContainer;
}
use of org.talend.components.service.rest.mock.MockDatastoreProperties in project components by Talend.
the class AbstractSpringIntegrationTests method buildTestDataSetSerProps.
protected SerPropertiesDto buildTestDataSetSerProps() throws java.io.IOException {
SerPropertiesDto formDataContainer = new SerPropertiesDto();
MockDatasetProperties mockDatasetProperties = new MockDatasetProperties("foo");
mockDatasetProperties.tag.setValue("tata");
mockDatasetProperties.tagId.setValue(256);
MockDatastoreProperties mockDatastoreProperties = new MockDatastoreProperties("bar");
formDataContainer.setDependencies(singletonList(mockDatastoreProperties.toSerialized()));
formDataContainer.setProperties(mockDatasetProperties.toSerialized());
return formDataContainer;
}
Aggregations