Package org.springframework.xd.dirt.test.process

Examples of org.springframework.xd.dirt.test.process.SingleNodeProcessingChainConsumer


  @Test
  public void chainWithSource() {

    String processingChainUnderTest = "time | transform --expression='T(org.joda.time.format.DateTimeFormat).forPattern(\"yyyy-MM-dd HH:mm:ss\").parseDateTime(payload)'";

    SingleNodeProcessingChainConsumer chain = chainConsumer(application, "dateToDateTime", processingChainUnderTest);

    Object payload = chain.receivePayload(RECEIVE_TIMEOUT);
    assertTrue(payload instanceof DateTime);

    chain.destroy();
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.test.process.SingleNodeProcessingChainConsumer

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.