use of io.nem.symbol.sdk.model.node.ServerInfo in project nem2-sdk-java by nemtech.
the class NodeRepositoryIntegrationTest method getServerInfo.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void getServerInfo(RepositoryType type) {
ServerInfo serverInfo = get(getNodeRepository(type).getServerInfo());
assertNotEquals("", serverInfo.getRestVersion());
assertNotEquals("", serverInfo.getSdkVersion());
}
use of io.nem.symbol.sdk.model.node.ServerInfo in project nem2-sdk-java by nemtech.
the class NodeRepositoryOkHttpImplTest method shouldGetServerInfo.
@Test
public void shouldGetServerInfo() throws Exception {
ServerInfoDTO dto = new ServerInfoDTO();
ServerDTO serverInfoDto = new ServerDTO();
serverInfoDto.setRestVersion("RestVersion1");
serverInfoDto.setSdkVersion("SdkVersion1");
dto.serverInfo(serverInfoDto);
mockRemoteCall(dto);
ServerInfo serverInfo = repository.getServerInfo().toFuture().get();
Assertions.assertEquals(dto.getServerInfo().getRestVersion(), serverInfo.getRestVersion());
Assertions.assertEquals(dto.getServerInfo().getSdkVersion(), serverInfo.getSdkVersion());
}
use of io.nem.symbol.sdk.model.node.ServerInfo in project nem2-sdk-java by nemtech.
the class NodeRepositoryOkVertxImplTest method shouldGetServerInfo.
@Test
public void shouldGetServerInfo() throws Exception {
ServerInfoDTO dto = new ServerInfoDTO();
ServerDTO serverInfoDto = new ServerDTO();
serverInfoDto.setRestVersion("RestVersion1");
serverInfoDto.setSdkVersion("SdkVersion1");
dto.serverInfo(serverInfoDto);
mockRemoteCall(dto);
ServerInfo serverInfo = repository.getServerInfo().toFuture().get();
Assertions.assertEquals(dto.getServerInfo().getRestVersion(), serverInfo.getRestVersion());
Assertions.assertEquals(dto.getServerInfo().getSdkVersion(), serverInfo.getSdkVersion());
}
Aggregations