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

Source Code of com.microsoft.windowsazure.services.media.models.MediaProcessorInfoTest

/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.microsoft.windowsazure.services.media.models;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.microsoft.windowsazure.services.media.implementation.content.MediaProcessorType;

public class MediaProcessorInfoTest {

    @Test
    public void testGetSetId() {
        // Arrange
        String expectedId = "expectedId";
        MediaProcessorInfo mediaProcessorInfo = new MediaProcessorInfo(null,
                new MediaProcessorType().setId(expectedId));

        // Act
        String actualId = mediaProcessorInfo.getId();

        // Assert
        assertEquals(expectedId, actualId);

    }

    @Test
    public void testGetSetName() {
        // Arrange
        String expectedName = "testName";
        MediaProcessorInfo mediaProcessorInfo = new MediaProcessorInfo(null,
                new MediaProcessorType().setName(expectedName));

        // Act
        String actualName = mediaProcessorInfo.getName();

        // Assert
        assertEquals(expectedName, actualName);
    }

    @Test
    public void testGetSetDescription() throws Exception {
        // Arrange
        String expectedDescription = "testDescription";

        MediaProcessorInfo mediaProcessorInfo = new MediaProcessorInfo(null,
                new MediaProcessorType().setDescription(expectedDescription));

        // Act
        String actualDescription = mediaProcessorInfo.getDescription();

        // Assert
        assertEquals(expectedDescription, actualDescription);

    }

    @Test
    public void testGetSetSku() throws Exception {
        // Arrange
        String expectedSku = "testSku";
        MediaProcessorInfo mediaProcessorInfo = new MediaProcessorInfo(null,
                new MediaProcessorType().setSku(expectedSku));

        // Act
        String actualSku = mediaProcessorInfo.getSku();

        // Assert
        assertEquals(expectedSku, actualSku);
    }

    @Test
    public void testGetSetVendor() {
        // Arrange
        String expectedVendor = "testVendor";
        MediaProcessorInfo mediaProcessorInfo = new MediaProcessorInfo(null,
                new MediaProcessorType().setVendor(expectedVendor));

        // Act
        String actualVendor = mediaProcessorInfo.getVendor();

        // Assert
        assertEquals(expectedVendor, actualVendor);
    }

    @Test
    public void testGetSetVersion() {
        // Arrange
        String expectedVersion = "testVersion";
        MediaProcessorInfo mediaProcessorInfo = new MediaProcessorInfo(null,
                new MediaProcessorType().setVersion(expectedVersion));

        // Act
        String actualVersion = mediaProcessorInfo.getVersion();

        // Assert
        assertEquals(expectedVersion, actualVersion);
    }

}
TOP

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

TOP
Copyright © 2018 www.massapi.com. 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.