aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn
diff options
context:
space:
mode:
authorƁukasz Biniek <biniek@localhost.localdomain>2018-07-25 12:25:42 +0200
committerbiniek <lukasz.biniek@nokia.com>2018-07-25 16:43:16 +0200
commit3ccd66a34ba4ef09cb296473cc8ff8ef5e5a8abb (patch)
treea4b13ba4ff411dd98c0fa110fb9c84b762ffe86e /bpmn
parentfc02356e16ab2483334bb5ee29018c4bffa23564 (diff)
Improved mutation tests coverage
Change-Id: I15ababe8547e617f5152a0a673688925f9b62a2b Issue-ID: SO-506 Signed-off-by: biniek <lukasz.biniek@nokia.com>
Diffstat (limited to 'bpmn')
-rw-r--r--bpmn/MSOInfrastructureBPMN/src/test/java/org/openecomp/mso/bpmn/infrastructure/pnf/delegate/CreateAaiEntryWithPnfIdDelegateTest.java7
1 files changed, 5 insertions, 2 deletions
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