diff options
author | Michael Lando <ml636r@att.com> | 2017-10-22 14:12:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-22 14:12:19 +0000 |
commit | 1e51062f26bd208691721dd9fbbb408afa59cfde (patch) | |
tree | d8e89ad7934e88022c447ac500c4250efb4df0c1 /catalog-dao | |
parent | 6ebd9c581142c2ca033c7bfba73b69ab6b378fee (diff) | |
parent | 968d54ca133fa53a3617fae6ff30e3ff06f1805e (diff) |
Merge "add more unit tests remove imports"
Diffstat (limited to 'catalog-dao')
-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 |