Search in sources :

Example 1 with MerkleStateInfoDTO

use of io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO 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());
}
Also used : MerkleStateInfo(io.nem.symbol.sdk.model.blockchain.MerkleStateInfo) Address(io.nem.symbol.sdk.model.account.Address) MerkleStateInfoDTO(io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO) Test(org.junit.jupiter.api.Test)

Example 2 with MerkleStateInfoDTO

use of io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO 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());
}
Also used : MerkleStateInfo(io.nem.symbol.sdk.model.blockchain.MerkleStateInfo) MerkleStateInfoDTO(io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO) Test(org.junit.jupiter.api.Test)

Example 3 with MerkleStateInfoDTO

use of io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO 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());
}
Also used : MerkleStateInfo(io.nem.symbol.sdk.model.blockchain.MerkleStateInfo) MerkleStateInfoDTO(io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO) Test(org.junit.jupiter.api.Test)

Example 4 with MerkleStateInfoDTO

use of io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO in project nem2-sdk-java by nemtech.

the class MultisigRepositoryVertxImplTest method getMultisigAccountInfoMerkle.

@Test
public void getMultisigAccountInfoMerkle() throws Exception {
    Address address = Address.generateRandom(this.networkType);
    mockRemoteCall(new MerkleStateInfoDTO().raw("abc"));
    MerkleStateInfo merkle = repository.getMultisigAccountInfoMerkle(address).toFuture().get();
    Assertions.assertEquals("abc", merkle.getRaw());
}
Also used : MerkleStateInfo(io.nem.symbol.sdk.model.blockchain.MerkleStateInfo) Address(io.nem.symbol.sdk.model.account.Address) MerkleStateInfoDTO(io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO) Test(org.junit.jupiter.api.Test)

Example 5 with MerkleStateInfoDTO

use of io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO in project nem2-sdk-java by nemtech.

the class HashLockRepositoryVertxImplTest 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());
}
Also used : MerkleStateInfo(io.nem.symbol.sdk.model.blockchain.MerkleStateInfo) MerkleStateInfoDTO(io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO) Test(org.junit.jupiter.api.Test)

Aggregations

MerkleStateInfo (io.nem.symbol.sdk.model.blockchain.MerkleStateInfo)10 MerkleStateInfoDTO (io.nem.symbol.sdk.openapi.vertx.model.MerkleStateInfoDTO)10 Test (org.junit.jupiter.api.Test)9 Address (io.nem.symbol.sdk.model.account.Address)3 MosaicId (io.nem.symbol.sdk.model.mosaic.MosaicId)1 NamespaceId (io.nem.symbol.sdk.model.namespace.NamespaceId)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 MethodSource (org.junit.jupiter.params.provider.MethodSource)1