Examples of JobType


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

        public static CreateBatchOperation create(URI serviceUri,
                Creator creator) {
            CreateBatchOperation createBatchOperation = new CreateBatchOperation(
                    serviceUri);

            JobType jobType = new JobType();
            jobType.setName(creator.getName());
            jobType.setPriority(creator.getPriority());
            for (JobNotificationSubscription jobNotificationSubscription : creator
                    .getJobNotificationSubscription()) {
                JobNotificationSubscriptionType jobNotificationSubscriptionType = new JobNotificationSubscriptionType();
                jobNotificationSubscriptionType
                        .setNotificationEndPointId(jobNotificationSubscription
                                .getNotificationEndPointId());
                jobNotificationSubscriptionType
                        .setTargetJobState(jobNotificationSubscription
                                .getTargetJobState().getCode());
                jobType.addJobNotificationSubscriptionType(jobNotificationSubscriptionType);
            }

            for (String inputMediaAsset : creator.getInputMediaAssets()) {
                createBatchOperation
                        .addLink(
View Full Code Here

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

                "application/atom+xml;type=feed", "OutputAssets");
        addEntryLink(fakeJobEntry, Constants.ODATA_DATA_NS
                + "/related/InputMediaAssets", expectedInputAsset,
                "application/atom+xml;type=feed", "InputAssets");

        JobType payload = new JobType().setId("SomeId").setName("FakeJob");
        addEntryContent(fakeJobEntry, payload);

        return new JobInfo(fakeJobEntry, payload);
    }
View Full Code Here

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

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

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

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetName() {
        // Arrange
        String expectedName = "testGetSetName";
        JobInfo JobInfo = new JobInfo(null, new JobType().setName(expectedName));

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

        // Assert
View Full Code Here

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

    public void testGetSetCreated() throws Exception {
        // Arrange
        Date expectedCreated = new Date();

        JobInfo JobInfo = new JobInfo(null,
                new JobType().setCreated(expectedCreated));

        // Act
        Date actualCreated = JobInfo.getCreated();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetLastModified() throws Exception {
        // Arrange
        Date expectedLastModified = new Date();
        JobInfo JobInfo = new JobInfo(null,
                new JobType().setLastModified(expectedLastModified));

        // Act
        Date actualLastModified = JobInfo.getLastModified();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetPriority() {
        // Arrange
        int expectedPriority = 3;
        JobInfo JobInfo = new JobInfo(null,
                new JobType().setPriority(expectedPriority));

        // Act
        int actualPriority = JobInfo.getPriority();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetRunningDuration() {
        // Arrange
        Double expectedRunningDuration = 1234.5;
        JobInfo JobInfo = new JobInfo(null,
                new JobType().setRunningDuration(expectedRunningDuration));

        // Act
        Double actualRunningDuration = JobInfo.getRunningDuration();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetStartTime() {
        // Arrange
        Date expectedStartTime = new Date();
        JobInfo JobInfo = new JobInfo(null,
                new JobType().setLastModified(expectedStartTime));

        // Act
        Date actualStartTime = JobInfo.getLastModified();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetState() {
        // Arrange
        JobState expectedJobState = JobState.Finished;
        JobInfo JobInfo = new JobInfo(null,
                new JobType().setState(expectedJobState.getCode()));

        // Act
        JobState actualJobState = JobInfo.getState();

        // Assert
View Full Code Here
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.