use of io.nem.symbol.sdk.openapi.okhttp_gson.model.MultisigAccountInfoDTO in project nem2-sdk-java by nemtech.
the class MultisigRepositoryOkHttpImplTest method getMultisigAccountInfo.
@Test
void getMultisigAccountInfo() throws Exception {
MultisigAccountInfoDTO dto = createMultisigAccountInfoDTO();
mockRemoteCall(dto);
MultisigAccountInfo multisigAccountInfo = repository.getMultisigAccountInfo(account.getAddress()).toFuture().get();
assertMultisignAccountInfo(multisigAccountInfo);
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.MultisigAccountInfoDTO in project nem2-sdk-java by nemtech.
the class MultisigRepositoryOkHttpImplTest method createMultisigAccountInfoDTO.
private MultisigAccountInfoDTO createMultisigAccountInfoDTO() {
MultisigAccountInfoDTO dto = new MultisigAccountInfoDTO();
MultisigDTO multisigDto = new MultisigDTO();
multisigDto.setVersion(1);
multisigDto.setAccountAddress(account.getAddress().encoded());
multisigDto.setMinApproval(1L);
multisigDto.setMinRemoval(2L);
multisigDto.setCosignatoryAddresses(Arrays.asList(account1.getAddress().encoded(), account2.getAddress().encoded()));
multisigDto.setMultisigAddresses(Arrays.asList(account2.getAddress().encoded(), account3.getAddress().encoded()));
dto.setMultisig(multisigDto);
return dto;
}
Aggregations