From 568db59e15471bf56289ff07dfaca6e2a9081dc4 Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Fri, 20 Oct 2017 22:51:31 +0300 Subject: add unit tests to components Change-Id: I665ad7f9f25c15cfaaa8deb38dd2390fd823a438 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg (cherry picked from commit a78ce5b07f10c6160152a017675b71cca36fb049) --- .../sdc/be/model/tosca/version/VersionTest.java | 133 +++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/VersionTest.java (limited to 'catalog-model/src/test/java/org') 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 -- cgit 1.2.3-korg