summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api
diff options
context:
space:
mode:
authortalig <talig@amdocs.com>2017-12-26 09:22:12 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2017-12-26 10:50:04 +0000
commit6cec2fdd8c296655122dc25294840d777de59614 (patch)
tree5869deece3d7deeb50948341acbb19c9d1c41f04 /openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api
parentfe4aff78dd7efe4feb092ba8025077ba1b419905 (diff)
Add Item Manager and Dao impl unit tests
Change-Id: I30df90a7ca543195d286f322e8bfa52ffabca849 Issue-ID: SDC-779 Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api')
-rw-r--r--openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/types/Item.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/types/Item.java b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/types/Item.java
index 329ac52133..2a95c05f49 100644
--- a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/types/Item.java
+++ b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/types/Item.java
@@ -3,6 +3,7 @@ package org.openecomp.sdc.versioning.types;
import org.openecomp.sdc.versioning.dao.types.VersionStatus;
import java.util.Date;
+import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
@@ -12,7 +13,7 @@ public class Item {
private String name;
private String description;
private Map<String, Object> properties = new HashMap<>();
- private Map<VersionStatus, Integer> versionStatusCounters = new HashMap<>();
+ private Map<VersionStatus, Integer> versionStatusCounters = new EnumMap<>(VersionStatus.class);
private Date creationTime;
private Date modificationTime;