From 899d7fc8108e249a1de815024b98055adaf65bfe Mon Sep 17 00:00:00 2001 From: ramverma Date: Tue, 18 Sep 2018 20:15:02 +0100 Subject: Fix sonar & add test cases for models * As per jacoco, the try-with-resources coverage issue is fixed in 0.8.0 release - https://www.jacoco.org/jacoco/trunk/doc/changes.html * Adding openpojo test for all the models in distribution-model * Removed jacoco version from distribution pom as oparent 1.2.1 already comes with jacoco 0.8.2 Change-Id: I55e2891a0dad1f10113730b46f10d760a883bea6 Issue-ID: POLICY-922 Signed-off-by: ramverma --- .../java/org/onap/policy/distribution/model/OptimizationPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/src/main/java') diff --git a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java index 71b7cef7..2ca3c945 100644 --- a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java +++ b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java @@ -61,7 +61,7 @@ public class OptimizationPolicy implements Policy { } public String getPolicyConfigType() { - return OPTIMIZATION; + return getPolicyType(); } public String getOnapName() { -- cgit 1.2.3-korg