Package org.springframework.xd.test.fixtures

Examples of org.springframework.xd.test.fixtures.FileJdbcJob.toDSL()


        FileJdbcJob.DEFAULT_TABLE_NAME, FileJdbcJob.DEFAULT_NAMES);
    String jobName = "tjduf" + UUID.randomUUID().toString();
    logger.info("Testing Job Deploy Undeploy Flow for: " + jobName);

    job(jobName, job.toDSL(),true);
    checkJob(jobName, job.toDSL(), true);
    undeployJob(jobName);
    checkJob(jobName, job.toDSL(), false);
    deployJob(jobName);
    checkJob(jobName, job.toDSL(), true);
    undeployJob(jobName);
View Full Code Here


    logger.info("Testing Job Deploy Undeploy Flow for: " + jobName);

    job(jobName, job.toDSL(),true);
    checkJob(jobName, job.toDSL(), true);
    undeployJob(jobName);
    checkJob(jobName, job.toDSL(), false);
    deployJob(jobName);
    checkJob(jobName, job.toDSL(), true);
    undeployJob(jobName);
  }
View Full Code Here

    job(jobName, job.toDSL(),true);
    checkJob(jobName, job.toDSL(), true);
    undeployJob(jobName);
    checkJob(jobName, job.toDSL(), false);
    deployJob(jobName);
    checkJob(jobName, job.toDSL(), true);
    undeployJob(jobName);
  }

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

    // Create a stream that writes to a file. This file will be used by the job.
    stream("dataSender", sources.http() + XD_DELIMITER
        + sinks.file(FileJdbcJob.DEFAULT_DIRECTORY, DEFAULT_FILE_NAME).toDSL());
    sources.http(getContainerHostForSource("dataSender")).postData(data);
    job(jobName, job.toDSL(),true);
    jobLaunch(jobName);
    String query = String.format("SELECT data FROM %s", tableName);

    waitForTablePopulation(query, jdbcSink.getJdbcTemplate(), 1);
View Full Code Here

      stream("dataSender" + i, sources.http("foobar", 9000 + i) + XD_DELIMITER
          + sinks.file(FileJdbcJob.DEFAULT_DIRECTORY, DEFAULT_FILE_NAME + "partition" + i).toDSL());
      sources.http(getContainerHostForSource("dataSender" + i), 9000 + i).postData(data);
    }
    waitForXD();
    job(job.toDSL());
    waitForXD();
    jobLaunch();

    String query = String.format("SELECT data FROM %s", tableName);
    waitForTablePopulation(query, jdbcSink.getJdbcTemplate(), 5);
View Full Code Here

    // Create a stream that writes to a file. This file will be used by the job.
    stream("dataSender", sources.http() + XD_DELIMITER
        + sinks.file(FileJdbcJob.DEFAULT_DIRECTORY, DEFAULT_FILE_NAME).toDSL());
    sources.http(getContainerHostForSource("dataSender")).postData(data);
    job(job.toDSL());
    waitForXD();
    jobLaunch();
    String query = String.format("SELECT data FROM %s", tableName);

    waitForTablePopulation(query, jdbcSink.getJdbcTemplate(), 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.