From c9d63f49af5455f503ca63395121b7cd4d8c8c88 Mon Sep 17 00:00:00 2001 From: "Sonsino, Ofir (os0695)" Date: Wed, 14 Mar 2018 12:04:50 +0200 Subject: Unit tests Change-Id: I9c63fd607757bbec095c26341af593d9afd73886 Issue-ID: VID-197 Signed-off-by: Sonsino, Ofir (os0695) --- .../vid/model/CategoryParameterOptionTest.java | 189 +++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 vid-app-common/src/test/java/org/onap/vid/model/CategoryParameterOptionTest.java (limited to 'vid-app-common/src/test/java/org/onap/vid/model/CategoryParameterOptionTest.java') diff --git a/vid-app-common/src/test/java/org/onap/vid/model/CategoryParameterOptionTest.java b/vid-app-common/src/test/java/org/onap/vid/model/CategoryParameterOptionTest.java new file mode 100644 index 00000000..35ef0ffa --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/model/CategoryParameterOptionTest.java @@ -0,0 +1,189 @@ +package org.onap.vid.model; + +import java.io.Serializable; +import java.util.Date; +import java.util.Set; + +import org.junit.Assert; +import org.junit.Test; + +public class CategoryParameterOptionTest { + + private CategoryParameterOption createTestSubject() { + return new CategoryParameterOption(); + } + + @Test + public void testGetId() throws Exception { + CategoryParameterOption testSubject; + Long result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getId(); + } + + @Test + public void testSetId() throws Exception { + CategoryParameterOption testSubject; + Long id = null; + + // default test + testSubject = createTestSubject(); + testSubject.setId(id); + } + + @Test + public void testGetAppId() throws Exception { + CategoryParameterOption testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAppId(); + } + + @Test + public void testSetAppId() throws Exception { + CategoryParameterOption testSubject; + String appId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAppId(appId); + } + + @Test + public void testGetName() throws Exception { + CategoryParameterOption testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getName(); + } + + @Test + public void testSetName() throws Exception { + CategoryParameterOption testSubject; + String name = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setName(name); + } + + @Test + public void testGetCategoryParameter() throws Exception { + CategoryParameterOption testSubject; + CategoryParameter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCategoryParameter(); + } + + @Test + public void testSetCategoryParameter() throws Exception { + CategoryParameterOption testSubject; + CategoryParameter categoryParameter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCategoryParameter(categoryParameter); + } + + @Test + public void testGetCreated() throws Exception { + CategoryParameterOption testSubject; + Date result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCreated(); + } + + @Test + public void testGetModified() throws Exception { + CategoryParameterOption testSubject; + Date result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModified(); + } + + @Test + public void testGetCreatedId() throws Exception { + CategoryParameterOption testSubject; + Long result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCreatedId(); + } + + @Test + public void testGetModifiedId() throws Exception { + CategoryParameterOption testSubject; + Long result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModifiedId(); + } + + @Test + public void testGetAuditUserId() throws Exception { + CategoryParameterOption testSubject; + Serializable result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAuditUserId(); + } + + @Test + public void testGetRowNum() throws Exception { + CategoryParameterOption testSubject; + Long result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRowNum(); + } + + @Test + public void testGetAuditTrail() throws Exception { + CategoryParameterOption testSubject; + Set result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAuditTrail(); + } + + @Test + public void testEquals() throws Exception { + CategoryParameterOption testSubject; + Object o = null; + boolean result; + + // test 1 + testSubject = createTestSubject(); + o = null; + result = testSubject.equals(o); + Assert.assertEquals(false, result); + } + + @Test + public void testHashCode() throws Exception { + CategoryParameterOption testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + +} \ No newline at end of file -- cgit 1.2.3-korg