use of com.hedera.mirror.importer.domain.StreamFileData in project hedera-mirror-node by hashgraph.
the class SignatureFileReaderV2Test method testReadValidFile.
@Test
void testReadValidFile() {
StreamFileData streamFileData = StreamFileData.from(signatureFile);
FileStreamSignature fileStreamSignature = fileReaderV2.read(streamFileData);
assertNotNull(fileStreamSignature);
assertThat(fileStreamSignature.getBytes()).isNotEmpty().isEqualTo(streamFileData.getBytes());
assertArrayEquals(Base64.decodeBase64(entireFileHashBase64.getBytes()), fileStreamSignature.getFileHash());
assertArrayEquals(Base64.decodeBase64(entireFileSignatureBase64.getBytes()), fileStreamSignature.getFileHashSignature());
}
Aggregations