public class FileSink extends DisposableFileSupport<FileSink>
Modifier and Type | Class and Description |
---|---|
static class |
FileSink.FileSinkContentsMatcher
A matcher on the String contents of the sink, that delegates to another (String) matcher.
|
static class |
FileSink.FileSinkTrimmedContentsMatcher
A matcher on the trimmed String contents of the sink, that delegates to another (String) matcher.
|
file
label
Constructor and Description |
---|
FileSink()
Create a file sink, but make sure that the future file is not present yet, so it can be waited upon with
getContents() . |
Modifier and Type | Method and Description |
---|---|
FileSink |
binary(boolean binary) |
protected java.lang.String |
toDSL()
Returns a representation of the module suitable for inclusion in a stream definition, e.g.
file --dir=xxxx --name=yyyy |
cleanup, makeTempDir, waitFor
label, toString
public FileSink()
getContents()
.public FileSink binary(boolean binary)
protected java.lang.String toDSL()
AbstractModuleFixture
file --dir=xxxx --name=yyyy
toDSL
in class AbstractModuleFixture<FileSink>