Package org.springframework.xd.shell.command.fixtures

Examples of org.springframework.xd.shell.command.fixtures.HttpSource.ensureReady()


    logger.info("Creating Stream: " + stream);
    stream().create(streamName, stream);

    logger.info("Posting String: " + stringToPost);
    httpSource.ensureReady().postData(stringToPost);

    assertThat(fileSink, eventually(hasContentsThat(equalTo(stringToPost))));

  }
View Full Code Here


    logger.info("Creating Stream: " + stream);
    stream().create(streamName, stream);

    logger.info("Posting String: " + stringToPostInJapanese);
    httpSource.ensureReady().postData(stringToPostInJapanese);


    assertThat(fileSink, eventually(hasContentsThat(equalTo(stringToPostInJapanese))));

  }
View Full Code Here

    final String streamName = generateStreamName();
    final String stream = String.format("%s | %s", source, fileSink);

    stream().create(streamName, stream);

    source.ensureReady().useContentType(String.format("text/plain;charset=%s", inCharset)).postFromFile(tempFileIn);

    assertThat(fileSink, eventually(hasContentsThat(equalTo(stringToPostInJapanese))));

  }
}
View Full Code Here

    stream().create(streamName1, "%s | transform --expression=payload.toUpperCase() > %s",
        httpSource, queueName);
    // Create stream with named channel as source
    stream().create(streamName2, "%s > %s", queueName, counterSink);
    httpSource.ensureReady().postData("test");
    assertThat(counterSink, eventually(hasValue("1")));
  }
}
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.