summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java/org
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-06-22 12:15:06 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-06-23 07:53:45 +0000
commit360884a24df3f22abc9533130c5de2d1673528f8 (patch)
tree879ab48c3e055b2869e9eb42aa4b057ec9b0584e /catalog-model/src/main/java/org
parentb29518ad6136fe628d7aff79d5fc607c5e890729 (diff)
Refactor ToscaTypeTest
Adding more tests and adding assert for old tests. Issue-ID: SDC-3143 Signed-off-by: xuegao <xg353y@intl.att.com> Change-Id: Id7cf5ec763b0d43dece9493613e336a4b3df9b72 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'catalog-model/src/main/java/org')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/ToscaType.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/ToscaType.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/ToscaType.java
index 87ad62195f..71abc54cb7 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/ToscaType.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/ToscaType.java
@@ -178,13 +178,13 @@ public enum ToscaType {
try {
return ConstraintUtil.parseToCollection(value, new TypeReference<List<Object>>() {});
} catch (ConstraintValueDoNotMatchPropertyTypeException e) {
- throw new IllegalArgumentException("Value must be a valid timestamp", e);
+ throw new IllegalArgumentException("Value must be a valid List", e);
}
case MAP:
try {
return ConstraintUtil.parseToCollection(value, new TypeReference<Map<String, Object>>() {});
} catch (ConstraintValueDoNotMatchPropertyTypeException e) {
- throw new IllegalArgumentException("Value must be a valid timestamp", e);
+ throw new IllegalArgumentException("Value must be a valid Map", e);
}
default:
return null;