aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-dao/src/test/java')
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/AccountTest.java9
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/resources/exception/ResourceDAOExceptionTest.java36
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