use of org.talend.components.azurestorage.table.tazurestorageinputtable.TAzureStorageInputTableProperties in project components by Talend.
the class AzureStorageTableComponentsTest method testTAzureStorageInputTableProperties.
@Test
public void testTAzureStorageInputTableProperties() {
TAzureStorageInputTableProperties p = new TAzureStorageInputTableProperties("test");
p.connection.setupProperties();
p.setupProperties();
p.connection.setupLayout();
p.schema.setupProperties();
p.schema.setupLayout();
p.setupLayout();
p.afterUseFilterExpression();
}
use of org.talend.components.azurestorage.table.tazurestorageinputtable.TAzureStorageInputTableProperties in project components by Talend.
the class AzureStorageTableSourceOrSinkTest method setUp.
@Before
public void setUp() throws Exception {
sos = new AzureStorageTableSourceOrSink();
props = new TAzureStorageInputTableProperties("test");
props.setupProperties();
}
use of org.talend.components.azurestorage.table.tazurestorageinputtable.TAzureStorageInputTableProperties in project components by Talend.
the class TAzureStorageOuputTableTestIT method createReader.
@SuppressWarnings("rawtypes")
public BoundedReader createReader(String table, String combinedFilter, boolean useMappings) {
TAzureStorageInputTableProperties props = new TAzureStorageInputTableProperties("tests");
props = (TAzureStorageInputTableProperties) setupConnectionProperties((AzureStorageProvideConnectionProperties) props);
props.tableName.setValue(table);
props.useFilterExpression.setValue(true);
if (useMappings) {
props.schema.schema.setValue(getMappingSchema());
props.nameMapping.schemaColumnName.setValue(schemaMappings);
props.nameMapping.entityPropertyName.setValue(propertyMappings);
} else {
props.schema.schema.setValue(getDynamicSchema());
props.nameMapping.schemaColumnName.setValue(null);
props.nameMapping.entityPropertyName.setValue(null);
}
AzureStorageTableSource source = new AzureStorageTableSource();
source.initialize(null, props);
source.validate(null);
return source.createReader(null);
}
use of org.talend.components.azurestorage.table.tazurestorageinputtable.TAzureStorageInputTableProperties in project components by Talend.
the class AzureStorageTableReaderTest method setUp.
@Before
public void setUp() throws Exception {
container = new RuntimeContainerMock();
properties = new TAzureStorageInputTableProperties(PROP_ + "InputTable");
properties.setupProperties();
// valid fake connection
properties.connection = new TAzureStorageConnectionProperties(PROP_ + "Connection");
properties.connection.protocol.setValue(Protocol.HTTP);
properties.connection.accountName.setValue("fakeAccountName");
properties.connection.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
properties.tableName.setValue("testTable");
properties.filterExpression.column.setValue(new ArrayList<String>());
properties.filterExpression.fieldType.setValue(new ArrayList<String>());
properties.filterExpression.function.setValue(new ArrayList<String>());
properties.filterExpression.operand.setValue(new ArrayList<String>());
properties.filterExpression.predicate.setValue(new ArrayList<String>());
properties.filterExpression.column.getValue().add("PartitionKey");
properties.filterExpression.fieldType.getValue().add(SupportedFieldType.STRING.name());
properties.filterExpression.function.getValue().add(Comparison.EQUAL.name());
properties.filterExpression.operand.getValue().add("Departement");
properties.filterExpression.predicate.getValue().add(Predicate.AND.name());
source = new AzureStorageTableSource();
}
Aggregations