aboutsummaryrefslogtreecommitdiffstats
path: root/ms/controllerblueprints
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-09-17 10:27:06 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-09-17 10:27:06 -0400
commit9a8dc7e8f01f088bac9380689901f310cf83b1a9 (patch)
tree06e0605e4e098738487245ec88d0754a825d939d /ms/controllerblueprints
parent64cba8a2c9249e59bb4719ee9a5e5e1799605f57 (diff)
Remove invalid test
Test case expects 404 Not Found, but URL used is actually same as one used in 200 OK case. Change-Id: Icf7da8237b483cdf13eccbb4a8bb17c23f300733 Issue-ID: CCSDK-558 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'ms/controllerblueprints')
-rw-r--r--ms/controllerblueprints/application/src/test/java/org/onap/ccsdk/apps/controllerblueprints/ControllerBluprintsApplicationTest.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/ms/controllerblueprints/application/src/test/java/org/onap/ccsdk/apps/controllerblueprints/ControllerBluprintsApplicationTest.java b/ms/controllerblueprints/application/src/test/java/org/onap/ccsdk/apps/controllerblueprints/ControllerBluprintsApplicationTest.java
index 39cb0da3d..58f3ccc30 100644
--- a/ms/controllerblueprints/application/src/test/java/org/onap/ccsdk/apps/controllerblueprints/ControllerBluprintsApplicationTest.java
+++ b/ms/controllerblueprints/application/src/test/java/org/onap/ccsdk/apps/controllerblueprints/ControllerBluprintsApplicationTest.java
@@ -48,13 +48,14 @@ public class ControllerBluprintsApplicationTest {
private HttpHeaders headers;
private ResponseEntity<ConfigModel> entity;
+
@Before
public void setUp(){
headers = new HttpHeaders();
headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);
entity = this.restTemplate
.exchange("/api/v1/config-model/1", HttpMethod.GET, new HttpEntity<>(headers),ConfigModel.class);
-
+
}
@Test
@@ -63,9 +64,4 @@ public class ControllerBluprintsApplicationTest {
Assert.assertNotNull("failed to get response Config model",entity.getBody());
}
- @Test
- public void testConfigModelFailure() {
- assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
- Assert.assertNotNull("failed to get response Config model",entity.getBody());
- }
}