diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-02-25 09:05:02 -0800 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2020-02-25 13:24:04 -0800 |
commit | e0d0fdb5484d2c02669358160a11d6751ada4f3a (patch) | |
tree | 4a53eb077058899a5aa6ce003066a6c10e490c81 /src/test/java/org/onap | |
parent | 7658007d67c5c2bc1d81bff4bf972b315cb5bea6 (diff) |
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 <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/test/java/org/onap')
-rw-r--r-- | src/test/java/org/onap/clamp/loop/LoopRepositoriesItCase.java | 4 | ||||
-rw-r--r-- | src/test/java/org/onap/clamp/loop/PolicyModelServiceItCase.java | 9 |
2 files changed, 7 insertions, 6 deletions
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()); |