private HttpHeaders headers;\r
private ResponseEntity<ConfigModel> entity;\r
\r
+\r
@Before\r
public void setUp(){\r
headers = new HttpHeaders();\r
headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);\r
entity = this.restTemplate\r
.exchange("/api/v1/config-model/1", HttpMethod.GET, new HttpEntity<>(headers),ConfigModel.class);\r
- \r
+\r
}\r
\r
@Test\r
Assert.assertNotNull("failed to get response Config model",entity.getBody());\r
}\r
\r
- @Test\r
- public void testConfigModelFailure() {\r
- assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);\r
- Assert.assertNotNull("failed to get response Config model",entity.getBody());\r
- }\r
}\r