Package com.microsoft.windowsazure.services.media.implementation.content

Examples of com.microsoft.windowsazure.services.media.implementation.content.ContentKeyRestType


        assertEquals("ContentKeys", creator.getUri());
    }

    @Test
    public void createContentKeyHasCorrectPayload() throws Exception {
        ContentKeyRestType contentKeyRestType = (ContentKeyRestType) ContentKey
                .create(testContentKeyId, testContentKeyType,
                        testEncryptedContentKey).getRequestContents();

        assertEquals(testContentKeyId, contentKeyRestType.getId());
        assertEquals(testContentKeyType.getCode(), contentKeyRestType
                .getContentKeyType().intValue());
        assertEquals(testEncryptedContentKey,
                contentKeyRestType.getEncryptedContentKey());
        assertNull(contentKeyRestType.getChecksum());
        assertNull(contentKeyRestType.getCreated());
        assertNull(contentKeyRestType.getLastModified());
        assertNull(contentKeyRestType.getName());
        assertNull(contentKeyRestType.getProtectionKeyId());
        assertNull(contentKeyRestType.getProtectionKeyType());
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.media.implementation.content.ContentKeyRestType

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.