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

Examples of com.microsoft.windowsazure.services.media.models.NotificationEndPointInfo


    @Test
    public void canCreateNotificationEndPoint() throws Exception {
        String testName = testNotificationEndPointPrefix + "CanCreate";

        NotificationEndPointInfo actualNotificationEndPoint = service
                .create(NotificationEndPoint.create(testName,
                        EndPointType.AzureQueue, testEndPointAddress));

        verifyNotificationEndPointProperties("notification end point ",
                testName, EndPointType.AzureQueue, testEndPointAddress,
View Full Code Here


    @Test
    public void canCreateNotificationEndPointWithReadPermissions()
            throws Exception {
        String testName = testNotificationEndPointPrefix + "CanCreate";

        NotificationEndPointInfo actualNotificationEndPoint = service
                .create(NotificationEndPoint.create(testName,
                        EndPointType.AzureQueue, testEndPointAddress));

        verifyNotificationEndPointProperties("notification end point",
                testName, EndPointType.AzureQueue, testEndPointAddress,
View Full Code Here

    }

    @Test
    public void canGetSingleNotificationEndPointById() throws Exception {
        String expectedName = testNotificationEndPointPrefix + "GetOne";
        NotificationEndPointInfo expectedNotificationEndPointInfo = service
                .create(NotificationEndPoint.create(expectedName,
                        EndPointType.AzureQueue, testEndPointAddress));

        NotificationEndPointInfo actualNotificationEndPointInfo = service
                .get(NotificationEndPoint.get(expectedNotificationEndPointInfo
                        .getId()));

        assertEquals(expectedNotificationEndPointInfo.getId(),
                actualNotificationEndPointInfo.getId());
        verifyNotificationEndPointProperties("notification end point",
                expectedName, EndPointType.AzureQueue, testEndPointAddress,
                actualNotificationEndPointInfo);
    }
View Full Code Here

                testNotificationEndPointPrefix + "ListOne",
                testNotificationEndPointPrefix + "ListTwo" };

        List<NotificationEndPointInfo> expectedNotificationEndPoints = new ArrayList<NotificationEndPointInfo>();
        for (int i = 0; i < notificationEndPointNames.length; i++) {
            NotificationEndPointInfo notificationEndPointInfo = service
                    .create(NotificationEndPoint.create(
                            notificationEndPointNames[i],
                            EndPointType.AzureQueue, testEndPointAddress));
            expectedNotificationEndPoints.add(notificationEndPointInfo);
        }
View Full Code Here

                testNotificationEndPointPrefix + "ListSix",
                testNotificationEndPointPrefix + "ListSeven" };

        List<NotificationEndPointInfo> expectedNotificationEndPointInfos = new ArrayList<NotificationEndPointInfo>();
        for (int i = 0; i < notificationEndPointNames.length; i++) {
            NotificationEndPointInfo notificationEndPointInfo = service
                    .create(NotificationEndPoint.create(
                            notificationEndPointNames[i],
                            EndPointType.AzureQueue, testEndPointAddress));
            expectedNotificationEndPointInfos.add(notificationEndPointInfo);
        }
View Full Code Here

    @Test
    public void canDeleteNotificationEndPointById() throws Exception {
        String testNotificationEndPointName = testNotificationEndPointPrefix
                + "ToDelete";
        NotificationEndPointInfo notificationEndPointToBeDeleted = service
                .create(NotificationEndPoint.create(
                        testNotificationEndPointName, EndPointType.AzureQueue,
                        testEndPointAddress));
        List<NotificationEndPointInfo> listNotificationEndPointsResult = service
                .list(NotificationEndPoint.list());
        int notificationEndPointBaseline = listNotificationEndPointsResult.size();

        service.delete(NotificationEndPoint
                .delete(notificationEndPointToBeDeleted.getId()));

        listNotificationEndPointsResult = service.list(NotificationEndPoint.list());
        assertEquals("listNotificationEndPointResult.size", notificationEndPointBaseline - 1,
                listNotificationEndPointsResult.size());

        for (NotificationEndPointInfo policy : service
                .list(NotificationEndPoint.list())) {
            assertFalse(notificationEndPointToBeDeleted.getId().equals(
                    policy.getId()));
        }

        expectedException.expect(ServiceException.class);
        expectedException.expect(new ServiceExceptionMatcher(404));
        service.get(NotificationEndPoint.get(notificationEndPointToBeDeleted
                .getId()));
    }
View Full Code Here

TOP

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

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.