use of io.nem.symbol.sdk.model.blockchain.FinalizedBlock in project nem2-sdk-java by nemtech.
the class ListenerIntegrationTest method shouldReturnFinalizedBlock.
@ParameterizedTest
@EnumSource(RepositoryType.class)
@Disabled
void shouldReturnFinalizedBlock(RepositoryType type) {
Listener listener = getListener(type);
FinalizedBlock finalizedBlock1 = get(listener.finalizedBlock().take(1));
FinalizedBlock finalizedBlock2 = get(getRepositoryFactory(type).createChainRepository().getChainInfo()).getLatestFinalizedBlock();
assertTrue(finalizedBlock1.getHeight().intValue() > 0);
assertEquals(finalizedBlock1, finalizedBlock2);
}
Aggregations