From c18126b9d41a6a65f33c28294895c3c0c47339c5 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 1 Aug 2018 01:10:12 +0530 Subject: 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 --- .../java/org/onap/appc/design/validator/TestDbResponse.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'appc-inbound/appc-design-services/provider/src/test') 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"); + } } -- cgit 1.2.3-korg