Package org.springframework.xd.test.fixtures

Examples of org.springframework.xd.test.fixtures.JdbcHdfsJob


  @Test
  public void testJdbcHdfsJob() {
    // Deploy stream and job.
    String data = UUID.randomUUID().toString();
    jdbcSink.getJdbcTemplate().getDataSource();
    JdbcHdfsJob job = jobs.jdbcHdfsJob();
    // Use a trigger to send data to JDBC
    stream("dataSender", sources.http() + XD_DELIMITER
        + jdbcSink);
    sources.http(getContainerHostForSource("dataSender")).postData(data);

    job(job.toDSL());
    waitForXD();
    jobLaunch();
    waitForXD(2000);
    // Evaluate the results of the test.
    String path = JdbcHdfsJob.DEFAULT_DIRECTORY + "/" + JdbcHdfsJob.DEFAULT_FILE_NAME + "-0.csv";
View Full Code Here

TOP

Related Classes of org.springframework.xd.test.fixtures.JdbcHdfsJob

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.