From e0d0fdb5484d2c02669358160a11d6751ada4f3a Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 25 Feb 2020 09:05:02 -0800 Subject: Fix Bug due to user management changes Fix the bugs, build is broken due to changes done previously Issue-ID: CLAMP-651 Change-Id: I57523bc2c3bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet --- src/test/java/org/onap/clamp/loop/LoopRepositoriesItCase.java | 4 ++-- src/test/java/org/onap/clamp/loop/PolicyModelServiceItCase.java | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/test/java/org/onap') diff --git a/src/test/java/org/onap/clamp/loop/LoopRepositoriesItCase.java b/src/test/java/org/onap/clamp/loop/LoopRepositoriesItCase.java index e6c477b44..fa4909cb4 100644 --- a/src/test/java/org/onap/clamp/loop/LoopRepositoriesItCase.java +++ b/src/test/java/org/onap/clamp/loop/LoopRepositoriesItCase.java @@ -226,8 +226,8 @@ public class LoopRepositoriesItCase { // createdDate should have NOT been changed assertThat(loopInDbRetrievedUpdated.getCreatedDate()).isEqualTo(loopInDb.getCreatedDate()); // other audit are the same - assertThat(loopInDbRetrievedUpdated.getCreatedBy()).isEqualTo(""); - assertThat(loopInDbRetrievedUpdated.getUpdatedBy()).isEqualTo(""); + assertThat(loopInDbRetrievedUpdated.getCreatedBy()).isEqualTo("Not found"); + assertThat(loopInDbRetrievedUpdated.getUpdatedBy()).isEqualTo("Not found"); // Attempt to delete the object and check it has well been cascaded diff --git a/src/test/java/org/onap/clamp/loop/PolicyModelServiceItCase.java b/src/test/java/org/onap/clamp/loop/PolicyModelServiceItCase.java index ce1181d33..abeecd1b2 100644 --- a/src/test/java/org/onap/clamp/loop/PolicyModelServiceItCase.java +++ b/src/test/java/org/onap/clamp/loop/PolicyModelServiceItCase.java @@ -29,9 +29,7 @@ import java.util.List; import java.util.SortedSet; import java.util.TreeSet; import java.util.stream.Collectors; - import javax.transaction.Transactional; - import org.junit.Test; import org.junit.runner.RunWith; import org.onap.clamp.clds.Application; @@ -74,6 +72,9 @@ public class PolicyModelServiceItCase { return policyModel; } + /** + * This test the create policy Model. + */ @Test @Transactional public void shouldCreatePolicyModel() { @@ -90,11 +91,11 @@ public class PolicyModelServiceItCase { .findById(new PolicyModelId(actualPolicyModel.getPolicyModelType(), actualPolicyModel.getVersion())) .get()); assertThat(actualPolicyModel.getPolicyModelType()).isEqualTo(policyModel.getPolicyModelType()); - assertThat(actualPolicyModel.getCreatedBy()).isEqualTo(""); + assertThat(actualPolicyModel.getCreatedBy()).isEqualTo("Not found"); assertThat(actualPolicyModel.getCreatedDate()).isNotNull(); assertThat(actualPolicyModel.getPolicyAcronym()).isEqualTo(policyModel.getPolicyAcronym()); assertThat(actualPolicyModel.getPolicyModelTosca()).isEqualTo(policyModel.getPolicyModelTosca()); - assertThat(actualPolicyModel.getUpdatedBy()).isEqualTo(""); + assertThat(actualPolicyModel.getUpdatedBy()).isEqualTo("Not found"); assertThat(actualPolicyModel.getUpdatedDate()).isNotNull(); assertThat(actualPolicyModel.getVersion()).isEqualTo(policyModel.getVersion()); -- cgit 1.2.3-korg