1 package org.onap.vid.api;
3 import java.util.HashMap;
4 import org.junit.Assert;
5 import org.springframework.core.ParameterizedTypeReference;
6 import org.springframework.http.ResponseEntity;
7 import org.testng.annotations.Test;
8 import vid.automation.test.utils.InsecureHttpsClient;
10 public class VersionControllerApiTest extends BaseApiTest {
13 public void probeRequest_returnsResponseAsExpected() {
15 ResponseEntity<HashMap<String, String>> response = InsecureHttpsClient.newRestTemplate().exchange(
17 org.springframework.http.HttpMethod.GET,
19 new ParameterizedTypeReference<HashMap<String, String>>() {
21 HashMap<String,String> versionResults = response.getBody();
22 Assert.assertNotNull(versionResults.get("features"));
23 Assert.assertNotNull(versionResults.get("build"));