Package com.microsoft.windowsazure

Examples of com.microsoft.windowsazure.Configuration


    }

    @Test(expected = IllegalArgumentException.class)
    public void deleteNullContainerFail() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        service.deleteContainer(null);
View Full Code Here


    }

    @Test
    public void listContainersWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        ListContainersResult results = service.listContainers();
View Full Code Here

    }

    @Test
    public void listContainersWithPaginationWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        ListContainersResult results = service
                .listContainers(new ListContainersOptions().setMaxResults(3));
View Full Code Here

    }

    @Test
    public void listContainersWithPrefixWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        ListContainersResult results = service
                .listContainers(new ListContainersOptions().setPrefix(
View Full Code Here

                .size());
    }

    @Test
    public void listBlockBlobWithNoCommittedBlocksWorks() throws Exception {
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        String container = TEST_CONTAINER_FOR_BLOBS;
        String blob = "listBlockBlobWithNoCommittedBlocksWorks";
View Full Code Here

    }

    @Test
    public void listBlobBlocksOnEmptyBlobWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        String container = TEST_CONTAINER_FOR_BLOBS;
        String blob = "test13";
View Full Code Here

    }

    @Test
    public void listBlobBlocksWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        String container = TEST_CONTAINER_FOR_BLOBS;
        String blob = "test14";
View Full Code Here

    }

    @Test
    public void listBlobBlocksWithOptionsWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        String container = TEST_CONTAINER_FOR_BLOBS;
        String blob = "test14";
View Full Code Here

import com.microsoft.windowsazure.Configuration;

public abstract class IntegrationTestBase {
    protected static Configuration createConfiguration() {
        Configuration config = Configuration.getInstance();
        overrideWithEnv(config, QueueConfiguration.ACCOUNT_NAME);
        overrideWithEnv(config, QueueConfiguration.ACCOUNT_KEY);
        overrideWithEnv(config, QueueConfiguration.URI);
        return config;
    }
View Full Code Here

    }

    @Test
    public void commitBlobBlocksWorks() throws Exception {
        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        String container = TEST_CONTAINER_FOR_BLOBS;
        String blob = "test14";
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.