Class NdjsonToMessageIterable

java.lang.Object
io.cucumber.messages.NdjsonToMessageIterable
All Implemented Interfaces:
AutoCloseable, Iterable<Envelope>

public final class NdjsonToMessageIterable extends Object implements Iterable<Envelope>, AutoCloseable
Iterates over messages read from a stream. Client code should not depend on this class directly, but rather on a Iterable<Envelope> object. Tests can then use a new ArrayList<Envelope> which implements the same interface.