Search in sources :

Example 1 with NetworkTypeDTO

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

the class NetworkRepositoryVertxImplTest method shouldGetNetworkInfo.

@Test
void shouldGetNetworkInfo() throws Exception {
    NetworkTypeDTO networkTypeDTO = new NetworkTypeDTO();
    networkTypeDTO.setName("mijinTest");
    networkTypeDTO.setDescription("some description");
    mockRemoteCall(networkTypeDTO);
    NetworkInfo info = repository.getNetworkInfo().toFuture().get();
    Assertions.assertNotNull(info);
    Assertions.assertEquals("mijinTest", info.getName());
    Assertions.assertEquals("some description", info.getDescription());
}
Also used : NetworkInfo(io.nem.symbol.sdk.model.network.NetworkInfo) NetworkTypeDTO(io.nem.symbol.sdk.openapi.vertx.model.NetworkTypeDTO) Test(org.junit.jupiter.api.Test)

Aggregations

NetworkInfo (io.nem.symbol.sdk.model.network.NetworkInfo)1 NetworkTypeDTO (io.nem.symbol.sdk.openapi.vertx.model.NetworkTypeDTO)1 Test (org.junit.jupiter.api.Test)1