diff options
author | Liam Fallon <liam.fallon@est.tech> | 2019-06-17 08:51:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-17 08:51:21 +0000 |
commit | aa0526fc9a995457aac1b803d428d253bef9116a (patch) | |
tree | 5350a91b647915d0d6d54b554b5129a18c503363 | |
parent | f1fa0ecd4437ce4062e5aa32f1762e79dec98c6c (diff) | |
parent | a82505f3a3c65960d496f5aa77e5045acb7e891b (diff) |
Merge "Remove isNullVersion from identifier class"
2 files changed, 0 insertions, 15 deletions
diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java index a6aec0858..ca3684a24 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersion.java @@ -20,7 +20,6 @@ package org.onap.policy.models.tosca.authorative.concepts; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; @@ -57,16 +56,6 @@ public class ToscaPolicyIdentifierOptVersion implements Comparable<ToscaPolicyId this.version = source.getVersion(); } - /** - * Determines if the version is null/missing. - * - * @return {@code true} if the version is null/missing, {@code false} - */ - @JsonIgnore - public boolean isNullVersion() { - return (version == null); - } - @Override public int compareTo(ToscaPolicyIdentifierOptVersion other) { if (this == other) { diff --git a/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersionTest.java b/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersionTest.java index 1d393c1d5..2ec2422a9 100644 --- a/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersionTest.java +++ b/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/concepts/ToscaPolicyIdentifierOptVersionTest.java @@ -22,8 +22,6 @@ package org.onap.policy.models.tosca.authorative.concepts; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; import org.junit.Test; @@ -45,12 +43,10 @@ public class ToscaPolicyIdentifierOptVersionTest extends ToscaIdentifierTestBase ToscaPolicyIdentifierOptVersion orig = new ToscaPolicyIdentifierOptVersion(NAME, null); assertEquals(NAME, orig.getName()); assertEquals(null, orig.getVersion()); - assertTrue(orig.isNullVersion()); orig = new ToscaPolicyIdentifierOptVersion(NAME, VERSION); assertEquals(NAME, orig.getName()); assertEquals(VERSION, orig.getVersion()); - assertFalse(orig.isNullVersion()); } @Test |