Package org.springframework.xd.dirt.test.source

Examples of org.springframework.xd.dirt.test.source.NamedChannelSource.unbind()


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

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

  @Override
  protected Map<String, String> onDemandProperties() {
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

    final Object bar1 = bar1sink.receivePayload(10000);
    final Object bar2 = bar2sink.receivePayload(10000);
    assertEquals("hello", bar1);
    assertEquals("hello", bar2);

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

  @Test
View Full Code Here

    assertEquals(1, count1);

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

    source.unbind();
    streamSink.unbind();
    tapSink.unbind();
    integrationSupport.undeployAndDestroyStream(streamDefinition);
    integrationSupport.undeployAndDestroyStream(tapDefinition);
  }
View Full Code Here

    final Object barPayload = barsink.receivePayload(10000);

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

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

  /**
 
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.