use of io.nem.symbol.sdk.model.network.NetworkInfo in project nem2-sdk-java by nemtech.
the class NetworkRepositoryIntegrationTest method getNetworkInfo.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void getNetworkInfo(RepositoryType type) {
NetworkInfo networkInfo = get(getNetworkRepository(type).getNetworkInfo());
assertEquals(getNetworkType().getNetworkName(), networkInfo.getName());
Assertions.assertNotNull(networkInfo.getDescription());
}
use of io.nem.symbol.sdk.model.network.NetworkInfo 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());
}
use of io.nem.symbol.sdk.model.network.NetworkInfo in project nem2-sdk-java by nemtech.
the class NetworkRepositoryOkHttpImplTest 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());
}
Aggregations