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

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


    @Test
    public void subscriptionsCanBeCreatedOnTopics() throws Exception {
        // Arrange
        String topicName = "TestSubscriptionsCanBeCreatedOnTopics";
        service.createTopic(new TopicInfo(topicName));

        // Act
        SubscriptionInfo created = service.createSubscription(topicName,
                new SubscriptionInfo("MySubscription")).getValue();
View Full Code Here


        String expectedLabel = "sampleLabel";
        String expectedMessageId = "sampleMessageId";
        String expectedSessionId = "sampleSessionId";
        String expectedReplyTo = "sampleReplyTo";
        String expectedTo = "sampleTo";
        service.createTopic(new TopicInfo(topicName));
        CorrelationFilter correlationFilter = new CorrelationFilter();
        correlationFilter.setCorrelationId(expectedCorrelationId);
        correlationFilter.setContentType(expectedContentType);
        correlationFilter.setLabel(expectedLabel);
        correlationFilter.setMessageId(expectedMessageId);
View Full Code Here

    @Test
    public void subscriptionsCanBeListed() throws Exception {
        // Arrange
        String topicName = "TestSubscriptionsCanBeListed";
        service.createTopic(new TopicInfo(topicName));
        service.createSubscription(topicName, new SubscriptionInfo(
                "MySubscription2"));

        // Act
        ListSubscriptionsResult result = service.listSubscriptions(topicName);
View Full Code Here

    @Test
    public void subscriptionsDetailsMayBeFetched() throws Exception {
        // Arrange
        String topicName = "TestSubscriptionsDetailsMayBeFetched";
        service.createTopic(new TopicInfo(topicName));
        service.createSubscription(topicName, new SubscriptionInfo(
                "MySubscription3"));

        // Act
        SubscriptionInfo result = service.getSubscription(topicName,
View Full Code Here

    @Test
    public void subscriptionsMayBeDeleted() throws Exception {
        // Arrange
        String topicName = "TestSubscriptionsMayBeDeleted";
        service.createTopic(new TopicInfo(topicName));
        service.createSubscription(topicName, new SubscriptionInfo(
                "MySubscription4"));
        service.createSubscription(topicName, new SubscriptionInfo(
                "MySubscription5"));
View Full Code Here

    @Test
    public void subscriptionWillReceiveMessage() throws Exception {
        // Arrange
        String topicName = "TestSubscriptionWillReceiveMessage";
        service.createTopic(new TopicInfo(topicName));
        service.createSubscription(topicName, new SubscriptionInfo("sub"));
        service.sendTopicMessage(topicName, new BrokeredMessage(
                "<p>Testing subscription</p>").setContentType("text/html"));

        // Act
View Full Code Here

    @Test
    public void subscriptionCanBeUpdated() throws Exception {
        // Arrange
        String topicName = "testSubscriptionCanBeUpdated";
        service.createTopic(new TopicInfo(topicName));
        SubscriptionInfo originalSubscription = service.createSubscription(
                topicName, new SubscriptionInfo("sub")).getValue();
        Integer expectedMaxDeliveryCount = 1024;

        // Act
View Full Code Here

    @Test
    public void rulesCanBeCreatedOnSubscriptions() throws Exception {
        // Arrange
        String topicName = "TestrulesCanBeCreatedOnSubscriptions";
        service.createTopic(new TopicInfo(topicName));
        service.createSubscription(topicName, new SubscriptionInfo("sub"));

        // Act
        RuleInfo created = service.createRule(topicName, "sub",
                new RuleInfo("MyRule1")).getValue();
View Full Code Here

    @Test
    public void rulesCanBeListedAndDefaultRuleIsPrecreated() throws Exception {
        // Arrange
        String topicName = "TestrulesCanBeListedAndDefaultRuleIsPrecreated";
        service.createTopic(new TopicInfo(topicName));
        service.createSubscription(topicName, new SubscriptionInfo("sub"));
        service.createRule(topicName, "sub", new RuleInfo("MyRule2"));

        // Act
        ListRulesResult result = service.listRules(topicName, "sub");
View Full Code Here

TOP

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

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.