use of io.nem.symbol.sdk.openapi.okhttp_gson.model.MerkleStateInfoDTO 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.openapi.okhttp_gson.model.MerkleStateInfoDTO in project nem2-sdk-java by nemtech.
the class RestrictionMosaicRepositoryOkHttpImplTest method getMosaicRestrictionsMerkle.
@Test
public void getMosaicRestrictionsMerkle() throws Exception {
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getMosaicRestrictionsMerkle("abc").toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.MerkleStateInfoDTO in project nem2-sdk-java by nemtech.
the class NamespaceRepositoryOkHttpImplTest method getNamespaceMerkle.
@Test
public void getNamespaceMerkle() throws Exception {
NamespaceId namespaceId = NamespaceId.createFromName("accountalias");
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getNamespaceMerkle(namespaceId).toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.MerkleStateInfoDTO in project nem2-sdk-java by nemtech.
the class MetadataRepositoryOkHttpImplTest method getMetadataMerkle.
@Test
public void getMetadataMerkle() throws Exception {
mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
MerkleStateInfo merkle = repository.getMetadataMerkle("abc").toFuture().get();
Assertions.assertEquals("abc", merkle.getRaw());
}
Aggregations