Fix sonars in policy-pap
[policy/pap.git] / main / src / test / java / org / onap / policy / pap / main / comm / msgdata / UpdateReqTest.java
index d85bf73..02f4728 100644 (file)
@@ -236,10 +236,7 @@ public class UpdateReqTest extends CommonRequestBase {
 
         assertTrue(data.reconfigure(msg2));
 
-        List<ToscaConceptIdentifier> dataPols = data.getMessage().getPoliciesToBeDeployed().stream()
-                .map(ToscaPolicy::getIdentifier)
-                .collect(Collectors.toList());
-        assertThat(dataPols).doesNotContainAnyElementsOf(data.getMessage().getPoliciesToBeUndeployed());
+        assertThat(data.getMessage().getPoliciesToBeDeployed()).isEmpty();
 
         // some items only in deploy
         policies = new ArrayList<>(update.getPolicies());