use of org.cactoos.iterable.Limited in project cactoos by yegor256.
the class BytesOfTest method readsLargeInMemoryContent.
@Test
public void readsLargeInMemoryContent() throws IOException {
final int multiplier = 5_000;
final String body = "1234567890";
MatcherAssert.assertThat("Can't read large content from in-memory Input", new BytesOf(new InputOf(new JoinedText("", new Limited<>(multiplier, new Endless<>(body))))).asBytes().length, Matchers.equalTo(body.length() * multiplier));
}
Aggregations