summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-02-05 13:29:02 +0530
committerPatrick Brady <patrick.brady@att.com>2019-02-05 18:08:47 +0000
commit33462c259f8c12388cc2804cc7ecf845f9a13bb0 (patch)
tree6eced46879ca5638a3cbb7ed08a91b6b3d69d03a /appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle
parentb23f8d7f714710ddf65f74654522ad5bae67964e (diff)
made changes to existing test case
to increase code coverage Issue-ID: APPC-1086 Change-Id: I72df9d78b439ff5d8b610d87a5295f5dce3fba59 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle')
-rw-r--r--appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/test/java/org/onap/appc/adapter/restHealthcheck/impl/RequestFailedExceptionTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/test/java/org/onap/appc/adapter/restHealthcheck/impl/RequestFailedExceptionTest.java b/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/test/java/org/onap/appc/adapter/restHealthcheck/impl/RequestFailedExceptionTest.java
index ff8065dee..624e05e51 100644
--- a/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/test/java/org/onap/appc/adapter/restHealthcheck/impl/RequestFailedExceptionTest.java
+++ b/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/test/java/org/onap/appc/adapter/restHealthcheck/impl/RequestFailedExceptionTest.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
+* Modifications Copyright 2019 IBM.
+*=================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -90,13 +92,11 @@ public class RequestFailedExceptionTest {
@Test
public void testConstructorWith_Server_Null() throws Exception {
- Server server = null;
- HttpStatus status = HttpStatus.ACCEPTED_202;
- String reason = "Success";
- String operation = "POST";
- RequestFailedException requestFailedException = new RequestFailedException(operation, reason, status, server);
+ Server server = new Server();
+ server.setId("testId");
+ RequestFailedException requestFailedException = new RequestFailedException();
requestFailedException.setServer(server);
- Assert.assertEquals(null, requestFailedException.getServer());
+ Assert.assertSame(server, requestFailedException.getServer());
}
@Test