diff options
author | Yuli Shlosberg <ys9693@att.com> | 2017-10-19 23:39:36 +0300 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2017-10-19 23:41:33 +0300 |
commit | b947eb599bfab4599ce1b0c0573b1701c646e429 (patch) | |
tree | 1c9750edbeb5e8a4e924bc100aa418d563942c13 /catalog-dao/src | |
parent | 6b2ed6ed1ff9da57cdc48afeec1ca63300b983a7 (diff) |
add more unit tests remove imports
Change-Id: If2274759f929f595e63d71cc70c374268c019947
Issue-Id: SDC-467
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'catalog-dao/src')
-rw-r--r-- | catalog-dao/src/test/java/org/openecomp/sdc/be/dao/AccountTest.java | 9 | ||||
-rw-r--r-- | catalog-dao/src/test/java/org/openecomp/sdc/be/resources/exception/ResourceDAOExceptionTest.java | 36 |
2 files changed, 36 insertions, 9 deletions
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/AccountTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/AccountTest.java index 81a2b41946..414748a416 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/AccountTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/AccountTest.java @@ -1,17 +1,13 @@ package org.openecomp.sdc.be.dao; -import javax.annotation.Generated; - import org.junit.Test; - public class AccountTest { private Account createTestSubject() { return new Account(); } - @Test public void testGetName() throws Exception { Account testSubject; @@ -22,7 +18,6 @@ public class AccountTest { result = testSubject.getName(); } - @Test public void testSetName() throws Exception { Account testSubject; @@ -33,7 +28,6 @@ public class AccountTest { testSubject.setName(name); } - @Test public void testGetEmail() throws Exception { Account testSubject; @@ -44,7 +38,6 @@ public class AccountTest { result = testSubject.getEmail(); } - @Test public void testSetEmail() throws Exception { Account testSubject; @@ -55,7 +48,6 @@ public class AccountTest { testSubject.setEmail(email); } - @Test public void testEquals() throws Exception { Account testSubject; @@ -67,7 +59,6 @@ public class AccountTest { result = testSubject.equals(other); } - @Test public void testHashCode() throws Exception { Account testSubject; diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/exception/ResourceDAOExceptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/exception/ResourceDAOExceptionTest.java new file mode 100644 index 0000000000..5424e712fc --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/exception/ResourceDAOExceptionTest.java @@ -0,0 +1,36 @@ +package org.openecomp.sdc.be.resources.exception; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.dao.api.ResourceUploadStatus; + + +public class ResourceDAOExceptionTest { + + private ResourceDAOException createTestSubject() { + return new ResourceDAOException("", null); + } + + + @Test + public void testGetStatus() throws Exception { + ResourceDAOException testSubject; + ResourceUploadStatus result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStatus(); + } + + + @Test + public void testSetStatus() throws Exception { + ResourceDAOException testSubject; + ResourceUploadStatus status = null; + + // default test + testSubject = createTestSubject(); + testSubject.setStatus(status); + } +}
\ No newline at end of file |