aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-10-20 22:51:31 +0300
committerYuli Shlosberg <ys9693@att.com>2017-10-23 06:53:29 +0000
commit568db59e15471bf56289ff07dfaca6e2a9081dc4 (patch)
tree0aa6e45e5c7ece37535fc4a6cf322cfdb938b415 /catalog-model/src
parent3803dbb31b9dfae1940871f10bb71fc88e593242 (diff)
add unit tests to components
Change-Id: I665ad7f9f25c15cfaaa8deb38dd2390fd823a438 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit a78ce5b07f10c6160152a017675b71cca36fb049)
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