aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-10-23 07:54:45 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-23 07:54:45 +0000
commita112d87d3d839a2230921a6aff9b9ce3f78bef96 (patch)
treecaf4e0e4da663bf10daae7759ad9a5011178165c /catalog-model/src
parent2b123f57f5fab492493c12ddc9c14b0c77e39e2d (diff)
parent568db59e15471bf56289ff07dfaca6e2a9081dc4 (diff)
Merge "add unit tests to components"
Diffstat (limited to 'catalog-model/src')
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java133
1 files changed, 133 insertions, 0 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java
new file mode 100644
index 0000000000..8b259f7cb8
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java
@@ -0,0 +1,133 @@
+package org.openecomp.sdc.be.model.tosca.version;
+
+import java.util.StringTokenizer;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+public class VersionTest {
+
+ private Version createTestSubject() {
+ return new Version("");
+ }
+
+
+ @Test
+ public void testHashCode() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+ @Test
+ public void testEquals() throws Exception {
+ Version testSubject;
+ Object other = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.equals(other);
+ }
+
+
+ @Test
+ public void testCompareTo() throws Exception {
+ Version testSubject;
+ Version otherVersion = null;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ }
+
+
+ @Test
+ public void testGetMajorVersion() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMajorVersion();
+ }
+
+
+ @Test
+ public void testGetMinorVersion() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMinorVersion();
+ }
+
+
+ @Test
+ public void testGetIncrementalVersion() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIncrementalVersion();
+ }
+
+
+ @Test
+ public void testGetBuildNumber() throws Exception {
+ Version testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBuildNumber();
+ }
+
+
+ @Test
+ public void testGetQualifier() throws Exception {
+ Version testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getQualifier();
+ }
+
+
+ @Test
+ public void testParseVersion() throws Exception {
+ Version testSubject;
+ String version = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.parseVersion(version);
+ }
+
+
+ @Test
+ public void testGetNextIntegerToken() throws Exception {
+ Integer result;
+
+ // default test
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ Version testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file