use of io.nem.symbol.sdk.openapi.okhttp_gson.model.MultisigAccountGraphInfoDTO in project nem2-sdk-java by nemtech.
the class MultisigRepositoryOkHttpImplTest method getMultisigAccountGraphInfo.
@Test
void getMultisigAccountGraphInfo() throws Exception {
MultisigAccountGraphInfoDTO dto = new MultisigAccountGraphInfoDTO();
dto.setLevel(10);
dto.setMultisigEntries(new ArrayList<>());
dto.getMultisigEntries().add(createMultisigAccountInfoDTO());
List<MultisigAccountGraphInfoDTO> dtos = new ArrayList<>();
dtos.add(dto);
mockRemoteCall(dtos);
MultisigAccountGraphInfo multisigAccountInfo = repository.getMultisigAccountGraphInfo(account.getAddress()).toFuture().get();
Assertions.assertEquals(1, multisigAccountInfo.getMultisigEntries().size());
List<MultisigAccountInfo> multisigAccountInfos = multisigAccountInfo.getMultisigEntries().get(10);
Assertions.assertEquals(1, multisigAccountInfos.size());
assertMultisignAccountInfo(multisigAccountInfos.get(0));
}
Aggregations