Package com.microsoft.windowsazure.services.media.models

Examples of com.microsoft.windowsazure.services.media.models.LocatorType


    }

    @Test
    public void createLocatorSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.SAS;

        // Act
        LocatorInfo locatorInfo = service.create(Locator.create(
                accessPolicyInfoRead.getId(), assetInfo.getId(), locatorType));
View Full Code Here


    }

    @Test
    public void createLocatorWithSpecifiedIdSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.SAS;

        // Act
        LocatorInfo locatorInfo = service.create(Locator.create(
                accessPolicyInfoRead.getId(), assetInfo.getId(), locatorType)
                .setId(String.format("nb:lid:UUID:%s", UUID.randomUUID()
View Full Code Here

            throws ServiceException {
        // Arrange
        Date expectedStartDateTime = new Date();
        expectedStartDateTime.setTime(expectedStartDateTime.getTime()
                + tenMinutesInMS);
        LocatorType locatorType = LocatorType.SAS;

        // Act
        LocatorInfo locatorInfo = service.create(Locator.create(
                accessPolicyInfo.getId(), assetInfo.getId(), locatorType)
                .setStartDateTime(expectedStartDateTime));
View Full Code Here

    }

    @Test
    public void getLocatorSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.SAS;
        Date expectedStartDateTime = new Date();
        expectedStartDateTime.setTime(expectedStartDateTime.getTime()
                + tenMinutesInMS);

        LocatorInfo expectedLocatorInfo = service.create(Locator.create(
View Full Code Here

    }

    @Test
    public void listLocatorsSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.SAS;
        List<LocatorInfo> expectedLocators = new ArrayList<LocatorInfo>();
        for (int i = 0; i < 2; i++) {
            expectedLocators.add(service.create(Locator.create(
                    accessPolicyInfo.getId(), assetInfo.getId(), locatorType)));
        }
View Full Code Here

    }

    @Test
    public void updateLocatorSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.OnDemandOrigin;
        LocatorInfo locatorInfo = service.create(Locator.create(
                accessPolicyInfoRead.getId(), assetInfo.getId(), locatorType));

        Date startTime = new Date();
        startTime.setTime(startTime.getTime() - tenMinutesInMS);
View Full Code Here

    }

    @Test
    public void updateLocatorNoChangesSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.OnDemandOrigin;
        Date expirationDateTime = new Date();
        expirationDateTime.setTime(expirationDateTime.getTime()
                + tenMinutesInMS);
        Date startTime = new Date();
        startTime.setTime(startTime.getTime() - tenMinutesInMS);
View Full Code Here

    }

    @Test
    public void deleteLocatorSuccess() throws ServiceException {
        // Arrange
        LocatorType locatorType = LocatorType.SAS;
        LocatorInfo locatorInfo = service.create(Locator.create(
                accessPolicyInfo.getId(), assetInfo.getId(), locatorType));
        ListResult<LocatorInfo> listLocatorsResult = service.list(Locator
                .list());
        int assetCountBaseline = listLocatorsResult.size();
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.media.models.LocatorType

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.