use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.
the class AzureStorageListReaderTest method setUp.
@Before
public void setUp() throws Exception {
runtimeContainer = new RuntimeContainerMock();
AzureStorageSource source = new AzureStorageSource();
properties = new TAzureStorageListProperties(PROP_ + "List");
properties.connection = new TAzureStorageConnectionProperties(PROP_ + "Connection");
properties.connection.protocol.setValue(Protocol.HTTP);
properties.connection.accountName.setValue("fakeAccountName");
properties.connection.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
properties.setupProperties();
source.initialize(runtimeContainer, properties);
reader = (AzureStorageListReader) source.createReader(runtimeContainer);
reader.azureStorageBlobService = blobService;
}
use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.
the class AzureStorageContainerCreateRuntimeTest method setup.
@Before
public void setup() {
properties = new TAzureStorageContainerCreateProperties(PROP_ + "CreateContainer");
properties.setupProperties();
// valid 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.accessControl.setValue(AccessControl.Public);
runtimeContainer = new RuntimeContainerMock();
this.containerCreate = new AzureStorageContainerCreateRuntime();
}
Aggregations