diff options
author | Yuli Shlosberg <ys9693@att.com> | 2017-10-19 23:39:36 +0300 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2017-10-22 13:30:52 +0000 |
commit | 968d54ca133fa53a3617fae6ff30e3ff06f1805e (patch) | |
tree | 3292470dc241433e8fce86027d132f34f8223180 /catalog-dao/src/test/java | |
parent | c7026576d55cce40fb9928616ab63f5a73663238 (diff) |
add more unit tests remove imports
Change-Id: If2274759f929f595e63d71cc70c374268c019947
Issue-Id: SDC-467
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
(cherry picked from commit b947eb599bfab4599ce1b0c0573b1701c646e429)
Diffstat (limited to 'catalog-dao/src/test/java')
-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 |