From 86755a65c526dfd8c8bab1235ddf273b7eb64c1f Mon Sep 17 00:00:00 2001 From: Joss Armstrong Date: Thu, 28 Feb 2019 08:10:55 +0000 Subject: Test coverage in MockQueryHelper Increased coverage from 17% to 91% Fixed Sonar major issue for branch coverage Issue-ID: APPC-1509 Change-Id: I822053c74db8f16875448206a22048032d30ad45 Signed-off-by: Joss Armstrong --- .../java/org/onap/appc/provider/lcm/mock/query/MockQueryHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'appc-provider/appc-provider-bundle/src/main/java/org/onap') diff --git a/appc-provider/appc-provider-bundle/src/main/java/org/onap/appc/provider/lcm/mock/query/MockQueryHelper.java b/appc-provider/appc-provider-bundle/src/main/java/org/onap/appc/provider/lcm/mock/query/MockQueryHelper.java index 8276c690c..39d962f63 100644 --- a/appc-provider/appc-provider-bundle/src/main/java/org/onap/appc/provider/lcm/mock/query/MockQueryHelper.java +++ b/appc-provider/appc-provider-bundle/src/main/java/org/onap/appc/provider/lcm/mock/query/MockQueryHelper.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modifications Copyright (C) 2019 Ericsson * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,7 +52,7 @@ import java.util.Map; * When backend is implemented, this file should be removed. */ public class MockQueryHelper extends AbstractMockHelper { - private final String MOCK_QUERY_FILENAME = "/tmp/lcm/query"; + private String MOCK_QUERY_FILENAME = "/tmp/lcm/query"; /** VF_STATE value are listed at https://wiki.openstack.org/wiki/VMState#vm_state */ private final Map> VF_STATE_MAP = new HashMap>() { -- cgit 1.2.3-korg