Package org.springframework.xd.dirt.test.sink

Examples of org.springframework.xd.dirt.test.sink.NamedChannelSink.unbind()


    source.sendPayload("hello");
    Object result = sink.receivePayload(1000);

    assertEquals("hello", result);
    source.unbind();
    sink.unbind();
  }

  @Override
  protected Map<String, String> onDemandProperties() {
    return Collections.singletonMap("module.router.producer.deliveryMode", "NON_PERSISTENT");
View Full Code Here


    assertEquals("hello", bar1);
    assertEquals("hello", bar2);

    source.unbind();
    bar1sink.unbind();
    bar2sink.unbind();
  }

  @Test
  public final void deployAndUndeploy() throws InterruptedException {
View Full Code Here

    assertEquals("DR.C.RYS!", result2);
    assertEquals(1, count2);

    source.unbind();
    streamSink.unbind();
    tapSink.unbind();
    integrationSupport.undeployAndDestroyStream(streamDefinition);
    integrationSupport.undeployAndDestroyStream(tapDefinition);
  }

  private void doTest(StreamDefinition routerDefinition) throws InterruptedException {
View Full Code Here

    assertEquals("a", fooPayload);
    assertEquals("b", barPayload);

    source.unbind();
    foosink.unbind();
    barsink.unbind();
  }

  /**
   * Listener for ZooKeeper paths for module deployment/undeployment.
   */
 
View Full Code Here

    source.sendPayload("ping");
    String result = (String) sink.receivePayload(5000);
    assertEquals(expected, result);

    source.unbind();
    sink.unbind();

    assertTrue("stream " + testStream.getName() + "not undeployed",
        integrationSupport.undeployAndDestroyStream(testStream));
    application.close();
  }
View Full Code Here

    source.sendPayload("a");
    result = (String) sink.receivePayload(RECEIVE_TIMEOUT);
    assertNull(result);

    source.unbind();
    sink.unbind();

    assertTrue("stream " + testStream.getName() + "not undeployed",
        integrationSupport.undeployAndDestroyStream(testStream));
  }
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.