use of com.hedera.mirror.importer.MirrorProperties in project hedera-mirror-node by hashgraph.
the class AddressBookServiceImplTest method startupWithOtherNetworkIncorrectInitialAddressBookPath.
@Test
void startupWithOtherNetworkIncorrectInitialAddressBookPath() {
MirrorProperties otherNetworkMirrorProperties = new MirrorProperties();
otherNetworkMirrorProperties.setDataPath(dataPath);
otherNetworkMirrorProperties.setInitialAddressBook(dataPath.resolve("test-v1"));
otherNetworkMirrorProperties.setNetwork(MirrorProperties.HederaNetwork.OTHER);
AddressBookService customAddressBookService = new AddressBookServiceImpl(addressBookRepository, fileDataRepository, otherNetworkMirrorProperties, transactionTemplate);
assertThrows(IllegalStateException.class, () -> {
customAddressBookService.getCurrent();
});
assertEquals(0, addressBookRepository.count());
}
use of com.hedera.mirror.importer.MirrorProperties 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);
}
use of com.hedera.mirror.importer.MirrorProperties in project hedera-mirror-node by hashgraph.
the class AccountBalanceLineParserV1Test method setup.
@BeforeEach
void setup() {
mirrorProperties = new MirrorProperties();
parser = new AccountBalanceLineParserV1(mirrorProperties);
}
Aggregations