aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-01 01:10:12 +0530
committerTakamune Cho <tc012c@att.com>2018-07-31 23:23:00 +0000
commitc18126b9d41a6a65f33c28294895c3c0c47339c5 (patch)
tree7898db424035d4d92875ac4f2fe883262faca297
parent18c1a161549206205bca4e8a33b56618a598d607 (diff)
updated test case to increase coverage
updated test to cover getAppcTimeStampResponse method in DbResponseProcessor.java Issue-ID: APPC-1086 Change-Id: I6333683181498857aa58ca7ccb404329574513ff Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDbResponse.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDbResponse.java b/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDbResponse.java
index b9a7b2f24..43105a79a 100644
--- a/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDbResponse.java
+++ b/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDbResponse.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modification Copyright (C) 2018 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
@@ -23,16 +25,14 @@
package org.onap.appc.design.validator;
-import java.util.ArrayList;
import org.junit.Test;
import org.onap.appc.design.dbervices.DbResponseProcessor;
public class TestDbResponse {
@Test
- public void testDbResponse() {
+ public void testDbResponse() throws Exception{
DbResponseProcessor dbResponse = new DbResponseProcessor();
- try {
dbResponse.parseResponse("Test", "getDesigns");
dbResponse.parseResponse("Test", "addInCart");
dbResponse.parseResponse("Test", "getArtifactReference");
@@ -43,8 +43,7 @@ public class TestDbResponse {
dbResponse.parseResponse("Test", "setProtocolReference");
dbResponse.parseResponse("Test", "setInCart");
dbResponse.parseResponse("Test", "getStatus");
- dbResponse.parseResponse("Test", "Test");
- } catch (Exception e) {
- }
+ dbResponse.parseResponse("Test", "getAppcTimestampUTC");
+
}
}