From b267dd31fa51c039b316c31566568046cdbdfb0d Mon Sep 17 00:00:00 2001 From: Joss Armstrong Date: Tue, 4 Dec 2018 18:13:22 +0000 Subject: Unit test fixes for APPC-1267 Removed code smell for <65% branch coverage - now 86%. Test cases now cover success scenarios for all methods. Coverage increased to 97%. Removed classloader code and unnecessary resource files Moved construction of objects to protected methods to facilitate testing. Issue-ID: APPC-1267 Change-Id: I07656a5464410ca5ca3cca55cefd54c03a711385 Signed-off-by: Joss Armstrong --- .../provider/src/test/resources/YamlParameter4.txt | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt (limited to 'appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt') diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt b/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt deleted file mode 100644 index a9d0fbbd7..000000000 --- a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt +++ /dev/null @@ -1,37 +0,0 @@ -# ============LICENSE_START========================================== -# ONAP : APPC -# =================================================================== -# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the License); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ============LICENSE_END============================================ -name: "PARAM4" -description: null -type: null -required: false -source: "A&AI" -rule-type: null -default: "0:0:0:0" -request-keys: -- key-name: "address_fqdn" - key-value: "value" -- key-name: "address_type" - key-value: "v4" -response-keys: -- unique-key-name: "parent-name" -- unique-key-value: "vserver" -- field-key-name: "vserver-name" -- cgit 1.2.3-korg