use of io.nem.symbol.sdk.openapi.vertx.model.MultisigAccountInfoDTO in project nem2-sdk-java by nemtech.
the class MultisigRepositoryVertxImplTest 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.vertx.model.MultisigAccountInfoDTO in project nem2-sdk-java by nemtech.
the class MultisigRepositoryVertxImplTest 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