diff options
Diffstat (limited to 'models/src/test/java/org')
2 files changed, 4 insertions, 2 deletions
diff --git a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java index 7c163870e..f34777a70 100644 --- a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java +++ b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantStatusTest.java @@ -59,7 +59,8 @@ class ParticipantStatusTest { ToscaConceptIdentifier id = new ToscaConceptIdentifier("id", "1.2.3"); orig.setControlLoopId(id); orig.setParticipantId(id); - orig.setParticipantType(id); + ToscaConceptIdentifier type = new ToscaConceptIdentifier("type", "2.3.4"); + orig.setParticipantType(type); orig.setMessageId(UUID.randomUUID()); orig.setState(ParticipantState.ACTIVE); orig.setHealthStatus(ParticipantHealthStatus.HEALTHY); @@ -70,6 +71,7 @@ class ParticipantStatusTest { ParticipantDefinition participantDefinitionUpdate = new ParticipantDefinition(); participantDefinitionUpdate.setParticipantId(id); + participantDefinitionUpdate.setParticipantType(type); ControlLoopElementDefinition clDefinition = getClElementDefinition(id); participantDefinitionUpdate.setControlLoopElementDefinitionList(List.of(clDefinition)); orig.setParticipantDefinitionUpdates(List.of(participantDefinitionUpdate)); diff --git a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java index 06141de2b..6fe8604cf 100644 --- a/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java +++ b/models/src/test/java/org/onap/policy/clamp/controlloop/models/messages/dmaap/participant/ParticipantUpdateTest.java @@ -67,7 +67,7 @@ class ParticipantUpdateTest { toscaNodeTemplate.setVersion("1.2.3"); ParticipantDefinition participantDefinitionUpdate = new ParticipantDefinition(); - participantDefinitionUpdate.setParticipantId(id); + participantDefinitionUpdate.setParticipantType(id); ControlLoopElementDefinition clDefinition = getClElementDefinition(id); participantDefinitionUpdate.setControlLoopElementDefinitionList(List.of(clDefinition)); orig.setParticipantDefinitionUpdates(List.of(participantDefinitionUpdate)); |