diff options
author | liamfallon <liam.fallon@ericsson.com> | 2018-09-28 22:48:30 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@ericsson.com> | 2018-09-30 22:17:06 +0100 |
commit | acb59c7b0ccbb86f4c38a94b72e7bab73b2acf8f (patch) | |
tree | e2f4a368b3a04572babc1df900369f6954fcc6da /context/context-test-utils/src/main/java | |
parent | 4ee8953bc55f2b905dee845728b3287eb4e8e795 (diff) |
Unit test for client monitoring
Coverage for the client monitoring module.
Issue-ID: POLICY-1034
Change-Id: I6bb6dab26ce0572923c3d451a3b5f4745d40d088
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'context/context-test-utils/src/main/java')
2 files changed, 6 insertions, 0 deletions
diff --git a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ArtifactKeyTestEntity.java b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ArtifactKeyTestEntity.java index 2653ca271..c40eeba98 100644 --- a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ArtifactKeyTestEntity.java +++ b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ArtifactKeyTestEntity.java @@ -241,6 +241,9 @@ public class ArtifactKeyTestEntity extends AxConcept { if (this == otherObj) { return 0; } + if (getClass() != otherObj.getClass()) { + return -1; + } final ArtifactKeyTestEntity other = (ArtifactKeyTestEntity) otherObj; if (key == null) { if (other.key != null) { diff --git a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ReferenceKeyTestEntity.java b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ReferenceKeyTestEntity.java index d172f0276..3c421a7a9 100644 --- a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ReferenceKeyTestEntity.java +++ b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/entities/ReferenceKeyTestEntity.java @@ -244,6 +244,9 @@ public class ReferenceKeyTestEntity extends AxConcept { if (this == otherObj) { return 0; } + if (getClass() != otherObj.getClass()) { + return -1; + } final ReferenceKeyTestEntity other = (ReferenceKeyTestEntity) otherObj; if (key == null) { if (other.key != null) { |