summaryrefslogtreecommitdiffstats
path: root/policy-domains/src
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2022-02-14 11:06:52 -0600
committerjhh <jorge.hernandez-herrero@att.com>2022-02-14 11:06:52 -0600
commite9d1d70a203d06c3f0e4695c3710b527b0a6eab3 (patch)
tree3dcce9b90f2a572dd712e1f1586eaf4d22e15e03 /policy-domains/src
parent355bc6f553089e93e87c64e85c435c13ce6fcf88 (diff)
Handle metadata policy-id as object
Issue-ID: POLICY-3832 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I60b4c3b9f8d6f74161d2e9532b3c3adba10cdc6b
Diffstat (limited to 'policy-domains/src')
-rw-r--r--policy-domains/src/test/java/org/onap/policy/drools/domain/models/DomainPolicyTypesTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy-domains/src/test/java/org/onap/policy/drools/domain/models/DomainPolicyTypesTest.java b/policy-domains/src/test/java/org/onap/policy/drools/domain/models/DomainPolicyTypesTest.java
index e9071a2b..bb28a45f 100644
--- a/policy-domains/src/test/java/org/onap/policy/drools/domain/models/DomainPolicyTypesTest.java
+++ b/policy-domains/src/test/java/org/onap/policy/drools/domain/models/DomainPolicyTypesTest.java
@@ -1,6 +1,6 @@
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2020,2022 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2021 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -86,7 +86,7 @@ public class DomainPolicyTypesTest {
assertEquals("lifecycle", domainDroolsPolicy.getProperties().getRulesArtifact().getArtifactId());
assertEquals("1.0.0", domainDroolsPolicy.getProperties().getRulesArtifact().getVersion());
- String policyId = toscaPolicy.getMetadata().remove("policy-id");
+ String policyId = "" + toscaPolicy.getMetadata().remove("policy-id");
assertThatThrownBy(() -> domainMaker.convertTo(toscaPolicy, NativeArtifactPolicy.class))
.isInstanceOf(CoderException.class).hasCauseInstanceOf(ValidationFailedException.class);