use of org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource in project components by Talend.
the class AzureStorageBaseQueueTestIT method createBoundedReader.
@Override
@SuppressWarnings("unchecked")
public <T> BoundedReader<T> createBoundedReader(ComponentProperties props) {
AzureStorageQueueSource source = new AzureStorageQueueSource();
source.initialize(null, props);
source.validate(null);
return source.createReader(null);
}
use of org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource in project components by Talend.
the class AzureStorageQueueInputLoopReaderTestIT method setupBeforeClass.
@BeforeClass
public static void setupBeforeClass() throws Exception {
properties = new TAzureStorageQueueInputLoopProperties("test");
properties.setupProperties();
source = new AzureStorageQueueSource();
source.initialize(null, properties);
reader = (AzureStorageQueueInputLoopReader) source.createReader(null);
}
use of org.talend.components.azurestorage.queue.runtime.AzureStorageQueueSource in project components by Talend.
the class AzureStorageBaseQueueTestIT method createTestQueue.
@BeforeClass
public static void createTestQueue() throws Throwable {
TAzureStorageQueueCreateProperties properties = new TAzureStorageQueueCreateProperties("tests");
properties = (TAzureStorageQueueCreateProperties) setupConnectionProperties((AzureStorageProvideConnectionProperties) properties);
properties.setupProperties();
properties.queueName.setValue(TEST_QUEUE_NAME);
AzureStorageQueueSource source = new AzureStorageQueueSource();
source.initialize(null, properties);
queueClient = source.getStorageQueueClient(null);
queue = source.getCloudQueue(null, TEST_QUEUE_NAME);
queue.createIfNotExists();
}
Aggregations