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

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


            this.endPointAddress = endPointAddress;
        }

        @Override
        public Object getRequestContents() {
            return new NotificationEndPointType().setName(name)
                    .setEndPointType(endPointType.getCode())
                    .setEndPointAddress(endPointAddress);
        }
View Full Code Here


         * @see com.microsoft.windowsazure.services.media.entityoperations.
         * EntityUpdateOperation#getRequestContents()
         */
        @Override
        public Object getRequestContents() {
            NotificationEndPointType notificationEndPointType = new NotificationEndPointType();
            notificationEndPointType.setName(name);
            return notificationEndPointType;
        }
View Full Code Here

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

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

        // Assert
View Full Code Here

    @Test
    public void testGetSetName() {
        // Arrange
        String expectedName = "notificationEndPointName";
        NotificationEndPointInfo notificationEndPointInfo = new NotificationEndPointInfo(
                null, new NotificationEndPointType().setName(expectedName));

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

        // Assert
View Full Code Here

        // Arrange
        Date expectedCreated = new Date();

        NotificationEndPointInfo notificationEndPointInfo = new NotificationEndPointInfo(
                null,
                new NotificationEndPointType().setCreated(expectedCreated));

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

        // Assert
View Full Code Here

    public void testGetSetEndPointType() throws Exception {
        // Arrange
        EndPointType expectedEndPointType = EndPointType.AzureQueue;
        NotificationEndPointInfo notificationEndPointInfo = new NotificationEndPointInfo(
                null,
                new NotificationEndPointType()
                        .setEndPointType(expectedEndPointType.getCode()));

        // Act
        EndPointType actualEndPointType = notificationEndPointInfo
                .getEndPointType();
View Full Code Here

    public void testGetSetEndPointAddress() {
        // Arrange
        String expectedEndPointAddress = "testGetSetEndPointAddress";
        NotificationEndPointInfo notificationEndPointInfo = new NotificationEndPointInfo(
                null,
                new NotificationEndPointType()
                        .setEndPointAddress(expectedEndPointAddress));

        // Act
        String actualEndPointAddress = notificationEndPointInfo
                .getEndPointAddress();
View Full Code Here

    }

    @Test
    public void NotificationEndPointCreateReturnsDefaultCreatePayload()
            throws ServiceException {
        NotificationEndPointType payload = (NotificationEndPointType) NotificationEndPoint
                .create(testNotificationEndPoint, EndPointType.AzureQueue,
                        testQueueName).getRequestContents();

        assertNotNull(payload);
        assertNull(payload.getId());
        assertNull(payload.getCreated());
        assertNotNull(payload.getName());
        assertNotNull(payload.getEndPointAddress());
        assertNotNull(payload.getEndPointType());
    }
View Full Code Here

        String name = "NotificationEndPointCreateCanSetNotificationEndPointName";

        NotificationEndPoint.Creator creator = (Creator) NotificationEndPoint
                .create(name, EndPointType.AzureQueue, testQueueName);

        NotificationEndPointType payload = (NotificationEndPointType) creator
                .getRequestContents();

        assertNotNull(payload);
        assertNull(payload.getId());
        assertNull(payload.getCreated());
        assertEquals(name, payload.getName());
    }
View Full Code Here

        String expectedName = "newNotificationEndPointName";

        EntityUpdateOperation updater = NotificationEndPoint.update(
                sampleNotificationEndPointId).setName(expectedName);

        NotificationEndPointType payload = (NotificationEndPointType) updater
                .getRequestContents();

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

TOP

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

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.