use of io.nem.symbol.sdk.model.blockchain.MerkleStateInfo in project nem2-sdk-java by nemtech.
the class AccountRepositoryOkHttpImplTest method getAccountInfoMerkle.
@Test
public void getAccountInfoMerkle() throws Exception {
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getAccountInfoMerkle(Address.generateRandom(this.networkType)).toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
use of io.nem.symbol.sdk.model.blockchain.MerkleStateInfo in project nem2-sdk-java by nemtech.
the class HashLockRepositoryOkHttpImplTest method getHashLockMerkle.
@Test
public void getHashLockMerkle() throws Exception {
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getHashLockMerkle("hash").toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
use of io.nem.symbol.sdk.model.blockchain.MerkleStateInfo in project nem2-sdk-java by nemtech.
the class AccountRepositoryVertxImplTest method getAccountInfoMerkle.
@Test
public void getAccountInfoMerkle() throws Exception {
Address address = Address.generateRandom(this.networkType);
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getAccountInfoMerkle(address).toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
use of io.nem.symbol.sdk.model.blockchain.MerkleStateInfo in project nem2-sdk-java by nemtech.
the class MetadataRepositoryVertxImplTest method getMetadataMerkle.
@Test
public void getMetadataMerkle() throws Exception {
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getMetadataMerkle("hash").toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
use of io.nem.symbol.sdk.model.blockchain.MerkleStateInfo in project nem2-sdk-java by nemtech.
the class SecretLockRepositoryVertxImplTest method getSecretLockMerkle.
@Test
public void getSecretLockMerkle() throws Exception {
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getSecretLockMerkle("hash").toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
Aggregations