Package com.microsoft.windowsazure.services.servicebus.models

Examples of com.microsoft.windowsazure.services.servicebus.models.ListTopicsResult


                getResource().path("$Resources/Topics")).get(Feed.class);
        ArrayList<TopicInfo> topics = new ArrayList<TopicInfo>();
        for (Entry entry : feed.getEntries()) {
            topics.add(new TopicInfo(entry));
        }
        ListTopicsResult result = new ListTopicsResult();
        result.setItems(topics);
        return result;
    }
View Full Code Here


        String topicName = "TestTopicCanBeCreatedListedFetchedAndDeleted";

        // Act
        TopicInfo created = service.createTopic(
                new TopicInfo().setPath(topicName)).getValue();
        ListTopicsResult listed = service.listTopics();
        TopicInfo fetched = service.getTopic(topicName).getValue();
        service.deleteTopic(topicName);
        ListTopicsResult listed2 = service.listTopics();

        // Assert
        assertNotNull(created);
        assertNotNull(listed);
        assertNotNull(fetched);
        assertNotNull(listed2);

        assertEquals(listed.getItems().size() - 1, listed2.getItems().size());
    }
View Full Code Here

        String topicName = "testPathA/testPathB/listTopicUnderASpecificPath";

        // Act
        TopicInfo topicInfo = service.createTopic(
                new TopicInfo().setPath(topicName)).getValue();
        ListTopicsResult listTopicResult = service
                .listTopics(new ListTopicsOptions()
                        .setFilter("startswith(path, 'testPathA/testPathB') eq true"));

        // Assert
        assertNotNull(topicInfo);
        assertEquals(1, listTopicResult.getItems().size());
    }
View Full Code Here

        String topicName = "testListTopicUpdatedInLastFiveMinutes";

        // Act
        TopicInfo topicInfo = service.createTopic(
                new TopicInfo().setPath(topicName)).getValue();
        ListTopicsResult listTopicResult = service
                .listTopics(new ListTopicsOptions()
                        .setFilter("ModifiedAt gt '1/25/2012 3:41:41 PM'"));

        // Assert
        assertNotNull(topicInfo);
        assertEquals(1, listTopicResult.getItems().size());
    }
View Full Code Here

        String topicName = "testListTopicAccessedInLastFiveMinutes";

        // Act
        TopicInfo topicInfo = service.createTopic(
                new TopicInfo().setPath(topicName)).getValue();
        ListTopicsResult listTopicResult = service
                .listTopics(new ListTopicsOptions()
                        .setFilter("AccessedAt gt '1/25/2012 3:41:41 PM'"));

        // Assert
        assertNotNull(topicInfo);
        assertEquals(0, listTopicResult.getItems().size());
    }
View Full Code Here

        String topicName = "testListTopicCreatedInLastFiveMinutes";

        // Act
        TopicInfo topicInfo = service.createTopic(
                new TopicInfo().setPath(topicName)).getValue();
        ListTopicsResult listTopicResult = service
                .listTopics(new ListTopicsOptions()
                        .setFilter("CreatedAt gt '1/25/2012 3:41:41 PM'"));

        // Assert
        assertNotNull(topicInfo);
        assertEquals(1, listTopicResult.getItems().size());
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.servicebus.models.ListTopicsResult

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.