use of org.llorllale.cactoos.matchers.HasContent in project cactoos by yegor256.
the class TeeInputFromTextTest method copiesFromTextToPath.
@Test
public void copiesFromTextToPath() throws Exception {
final String input = "Hello, товарищ path #1 äÄ üÜ öÖ and ß";
final File output = this.folder.newFile();
new LengthOf(new TeeInput(new TextOf(input), output.toPath())).value();
new Assertion<>("text must be copied to the path", new InputOf(output), new HasContent(input)).affirm();
}
Aggregations