Package org.springframework.xd.test.fixtures

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


    // Are we on *nix at least?
    if (!new File("/tmp/").exists()) {
      return;
    }

    FileSource source = newFileSource();
    FileSink sink = newFileSink().binary(true);

    source.appendToFile("Hi there!");
    stream().create(generateStreamName(), "in: %s | out: %s", source, sink);
    assertThat(sink, eventually(hasContentsThat(equalTo("Hi there!"))));


  }
View Full Code Here


    disposables.add(fileSink);
    return fileSink;
  }

  protected FileSource newFileSource() {
    FileSource fileSource = new FileSource();
    disposables.add(fileSource);
    return fileSource;
  }
View Full Code Here

TOP

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

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.