use of com.hedera.mirror.common.domain.event.EventItem in project hedera-mirror-node by hashgraph.
the class EventFileParserTest method getStreamFile.
@Override
protected StreamFile getStreamFile() {
long id = ++count;
Instant instant = Instant.ofEpochSecond(0L, id);
String filename = StreamFilename.getFilename(parserProperties.getStreamType(), DATA, instant);
EventFile eventFile = new EventFile();
eventFile.setBytes(new byte[] { 0, 1, 2 });
eventFile.setConsensusEnd(id);
eventFile.setConsensusStart(id);
eventFile.setConsensusEnd(id);
eventFile.setCount(id);
eventFile.setDigestAlgorithm(DigestAlgorithm.SHA384);
eventFile.setFileHash("fileHash" + id);
eventFile.setHash("hash" + id);
eventFile.setLoadEnd(id);
eventFile.setLoadStart(id);
eventFile.setName(filename);
eventFile.setNodeAccountId(EntityId.of("0.0.3", EntityType.ACCOUNT));
eventFile.setPreviousHash("previousHash" + (id - 1));
eventFile.setVersion(1);
eventFile.setItems(Flux.just(new EventItem()));
return eventFile;
}