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

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


         * @param taskBody
         *            the task body
         */
        public CreateBatchOperation(String mediaProcessorId, String taskBody) {
            this.setVerb("POST");
            taskType = new TaskType();
            addContentObject(taskType);
            this.taskType.setMediaProcessorId(mediaProcessorId);
            this.taskType.setTaskBody(taskBody);
        }
View Full Code Here


                    ContentType contentType = (ContentType) element.getValue();
                    for (Object grandChild : contentType.getContent()) {
                        if (grandChild instanceof JAXBElement) {
                            @SuppressWarnings("rawtypes")
                            JAXBElement contentElement = (JAXBElement) grandChild;
                            TaskType taskType = (TaskType) contentElement
                                    .getValue();
                            return taskType;
                        }
                    }
                    return null;
View Full Code Here

    @Test
    public void taskCreateReturnsDefaultCreatePayload() {
        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task.create(expectedMediaProcessorId,
                expectedTaskBody).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedMediaProcessorId, taskType.getMediaProcessorId());
        assertEquals(expectedTaskBody, taskType.getTaskBody());
    }
View Full Code Here

        String expectedName = "TaskCreateCanSetTaskName";

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setName(expectedName).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedName, taskType.getName());
    }
View Full Code Here

        String expectedConfiguration = "TaskCreateCanSetTaskCofniguration";

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setConfiguration(expectedConfiguration).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedConfiguration, taskType.getConfiguration());
    }
View Full Code Here

        Integer expectedPriority = 3;

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setPriority(expectedPriority).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedPriority, taskType.getPriority());
    }
View Full Code Here

        String expectedTaskBodyResult = "expectedTaskBodyResult";

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setTaskBody(expectedTaskBodyResult).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedTaskBodyResult, taskType.getTaskBody());
    }
View Full Code Here

        String expectedEncryptionKeyId = "expectedEncryptionKeyId";

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setEncryptionKeyId(expectedEncryptionKeyId).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedEncryptionKeyId, taskType.getEncryptionKeyId());
    }
View Full Code Here

        String expectedEncryptionScheme = "expectedEncryptionScheme";

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setEncryptionScheme(expectedEncryptionScheme).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedEncryptionScheme, taskType.getEncryptionScheme());
    }
View Full Code Here

        String expectedEncryptionVersion = "expectedEncryptionVersion";

        String expectedMediaProcessorId = "expectedMediaProcessorId";
        String expectedTaskBody = "expectedTaskBody";

        TaskType taskType = getTaskType(Task
                .create(expectedMediaProcessorId, expectedTaskBody)
                .setEncryptionVersion(expectedEncryptionVersion).getEntryType());

        assertNotNull(taskType);
        assertEquals(expectedEncryptionVersion, taskType.getEncryptionVersion());
    }
View Full Code Here

TOP

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

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.