Improved mutation tests coverage 57/57557/1
authorŁukasz Biniek <biniek@localhost.localdomain>
Wed, 25 Jul 2018 10:25:42 +0000 (12:25 +0200)
committerbiniek <lukasz.biniek@nokia.com>
Wed, 25 Jul 2018 14:43:16 +0000 (16:43 +0200)
Change-Id: I15ababe8547e617f5152a0a673688925f9b62a2b
Issue-ID: SO-506
Signed-off-by: biniek <lukasz.biniek@nokia.com>
bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java

index 3a65eaf..bc70a09 100644 (file)
@@ -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