From 3ccd66a34ba4ef09cb296473cc8ff8ef5e5a8abb Mon Sep 17 00:00:00 2001 From: Ɓukasz Biniek Date: Wed, 25 Jul 2018 12:25:42 +0200 Subject: Improved mutation tests coverage Change-Id: I15ababe8547e617f5152a0a673688925f9b62a2b Issue-ID: SO-506 Signed-off-by: biniek --- .../pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bpmn/MSOInfrastructureBPMN/src/test') diff --git a/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java b/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java index 3a65eaf531..bc70a09880 100644 --- a/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java +++ b/bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java @@ -27,6 +27,7 @@ import static org.openecomp.mso.bpmn.infrastructure.pnf.delegate.ExecutionVariab import org.camunda.bpm.engine.delegate.DelegateExecution; import org.junit.Test; +import org.onap.aai.domain.yang.Pnf; public class CreateAaiEntryWithPnfIdDelegateTest { @@ -41,7 +42,9 @@ public class CreateAaiEntryWithPnfIdDelegateTest { // when delegate.execute(execution); // then - assertThat(aaiConnection.getCreated().get("testCorrelationId").getPnfId()).isEqualTo("testCorrelationId"); - assertThat(aaiConnection.getCreated().get("testCorrelationId").getPnfName()).isEqualTo("testCorrelationId"); + Pnf createdEntry = aaiConnection.getCreated().get("testCorrelationId"); + assertThat(createdEntry.getPnfId()).isEqualTo("testCorrelationId"); + assertThat(createdEntry.getPnfName()).isEqualTo("testCorrelationId"); + assertThat(createdEntry.isInMaint()).isTrue(); } } \ No newline at end of file -- cgit 1.2.3-korg