Search in sources :

Example 1 with CommonDownloaderProperties

use of com.hedera.mirror.importer.downloader.CommonDownloaderProperties in project hedera-mirror-node by hashgraph.

the class MirrorDateRangePropertiesProcessorTest method setUp.

@BeforeEach
void setUp() {
    mirrorProperties = new MirrorProperties();
    mirrorProperties.setNetwork(MirrorProperties.HederaNetwork.TESTNET);
    CommonDownloaderProperties commonDownloaderProperties = new CommonDownloaderProperties(mirrorProperties);
    var balanceDownloaderProperties = new BalanceDownloaderProperties(mirrorProperties, commonDownloaderProperties);
    var eventDownloaderProperties = new EventDownloaderProperties(mirrorProperties, commonDownloaderProperties);
    var recordDownloaderProperties = new RecordDownloaderProperties(mirrorProperties, commonDownloaderProperties);
    downloaderPropertiesList = List.of(balanceDownloaderProperties, eventDownloaderProperties, recordDownloaderProperties);
    mirrorDateRangePropertiesProcessor = new MirrorDateRangePropertiesProcessor(mirrorProperties, downloaderPropertiesList, accountBalanceFileRepository, eventFileRepository, recordFileRepository);
    balanceDownloaderProperties.setEnabled(true);
    eventDownloaderProperties.setEnabled(true);
    recordDownloaderProperties.setEnabled(true);
}
Also used : EventDownloaderProperties(com.hedera.mirror.importer.downloader.event.EventDownloaderProperties) BalanceDownloaderProperties(com.hedera.mirror.importer.downloader.balance.BalanceDownloaderProperties) RecordDownloaderProperties(com.hedera.mirror.importer.downloader.record.RecordDownloaderProperties) MirrorProperties(com.hedera.mirror.importer.MirrorProperties) CommonDownloaderProperties(com.hedera.mirror.importer.downloader.CommonDownloaderProperties) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MirrorProperties (com.hedera.mirror.importer.MirrorProperties)1 CommonDownloaderProperties (com.hedera.mirror.importer.downloader.CommonDownloaderProperties)1 BalanceDownloaderProperties (com.hedera.mirror.importer.downloader.balance.BalanceDownloaderProperties)1 EventDownloaderProperties (com.hedera.mirror.importer.downloader.event.EventDownloaderProperties)1 RecordDownloaderProperties (com.hedera.mirror.importer.downloader.record.RecordDownloaderProperties)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1