Search in sources :

Example 1 with MockDatastoreProperties

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;
}
Also used : SerPropertiesDto(org.talend.components.service.rest.dto.SerPropertiesDto) MockDatastoreProperties(org.talend.components.service.rest.mock.MockDatastoreProperties)

Example 2 with MockDatastoreProperties

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;
}
Also used : MockDatasetProperties(org.talend.components.service.rest.mock.MockDatasetProperties) SerPropertiesDto(org.talend.components.service.rest.dto.SerPropertiesDto) MockDatastoreProperties(org.talend.components.service.rest.mock.MockDatastoreProperties)

Aggregations

SerPropertiesDto (org.talend.components.service.rest.dto.SerPropertiesDto)2 MockDatastoreProperties (org.talend.components.service.rest.mock.MockDatastoreProperties)2 MockDatasetProperties (org.talend.components.service.rest.mock.MockDatasetProperties)1