Examples of unbindProducers()


Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

      }
    });
    moduleOutputChannel.send(message);
    assertTrue(latch.await(10, TimeUnit.SECONDS));
    messageBus.unbindConsumers("bad.0");
    messageBus.unbindProducers("bad.0");
  }

  @Test
  public void testConsumerProperties() throws Exception {
    MessageBus bus = getMessageBus();
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

        MessageDeliveryMode.class);
    assertEquals(MessageDeliveryMode.PERSISTENT, mode);
    List<?> requestHeaders = TestUtils.getPropertyValue(endpoint,
        "handler.delegate.headerMapper.requestHeaderMatcher.strategies", List.class);
    assertEquals(2, requestHeaders.size());
    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());

    Properties properties = new Properties();
    properties.put("prefix", "foo.");
    properties.put("deliveryMode", "NON_PERSISTENT");
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

          containsString("partitionKeyExpression"),
          containsString("partitionSelectorClass")));
      assertThat(e.getMessage(), containsString("for queue:dummy."));
    }

    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());
  }

  @Test
  public void testRequestReplyRequestorProperties() throws Exception {
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

          containsString("partitionSelectorClass")));
      assertThat(e.getMessage(), allOf(containsString("partitionIndex"), containsString("for dummy.")));
    }

    bus.unbindConsumers("props.0");
    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());
  }

  @Test
  public void testRequestReplyReplierProperties() throws Exception {
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

          containsString("partitionSelectorClass")));
      assertThat(e.getMessage(), allOf(containsString("partitionIndex"), containsString("for dummy.")));
    }

    bus.unbindConsumers("props.0");
    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());
  }

  @Test
  public void testAutoBindDLQ() throws Exception {
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

    bus.unbindProducer("topic:x", testChannel);
    bus.unbindConsumers("topic:x");
    bus.unbindConsumers("topic:y");
    bus.unbindConsumers("topic:z");
    bus.unbindProducers("topic:y");
    bus.unbindProducers("topic:z");
  }

  protected void assertModuleRequest(String streamName, String moduleName, boolean remove) {
    PathChildrenCacheEvent event = remove ? deploymentsListener.nextUndeployEvent(streamName)
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

    bus.unbindProducer("topic:x", testChannel);
    bus.unbindConsumers("topic:x");
    bus.unbindConsumers("topic:y");
    bus.unbindConsumers("topic:z");
    bus.unbindProducers("topic:y");
    bus.unbindProducers("topic:z");
  }

  protected void assertModuleRequest(String streamName, String moduleName, boolean remove) {
    PathChildrenCacheEvent event = remove ? deploymentsListener.nextUndeployEvent(streamName)
        : deploymentsListener.nextDeployEvent(streamName);
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

    assertEquals(1, bindings.size());
    AbstractEndpoint endpoint = bindings.get(0).getEndpoint();
    assertEquals(
        "queue.props.0",
        TestUtils.getPropertyValue(endpoint, "handler.delegate.queueNameExpression", Expression.class).getExpressionString());
    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());

    Properties properties = new Properties();
    properties.put("partitionKeyExpression", "'foo'");
    properties.put("partitionKeyExtractorClass", "foo");
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

          containsString("partitionKeyExpression"),
          containsString("partitionSelectorClass")));
      assertThat(e.getMessage(), containsString("for queue:dummy."));
    }

    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());
  }

  @Test
  public void testRequestReplyRequestorProperties() throws Exception {
View Full Code Here

Examples of org.springframework.xd.dirt.integration.bus.MessageBus.unbindProducers()

          containsString("partitionSelectorClass")));
      assertThat(e.getMessage(), allOf(containsString("partitionIndex"), containsString("for dummy.")));
    }

    bus.unbindConsumers("props.0");
    bus.unbindProducers("props.0");
    assertEquals(0, bindings.size());
  }

  @Test
  public void testRequestReplyReplierProperties() throws Exception {
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.