aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/policy
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2018-12-31 17:21:27 +0200
committerIttay Stern <ittay.stern@att.com>2019-01-09 20:19:55 +0200
commit6ad41e3ccd398a2721f41ad61c80b7bb03f7d127 (patch)
tree3bd672dff83e3218232cd8665680416b7fc26a5d /vid-app-common/src/test/java/org/onap/vid/policy
parent5ec29ff5e3864f1ba6ecac71f8bffbefa400cf27 (diff)
Merge from ECOMP's repository
Main Features -------------- - Async-Instantiation jobs mechanism major update; still WIP (package `org.onap.vid.job`) - New features in View/Edit: Activate fabric configuration; show related networks; soft delete - Support AAI service-tree traversal (`AAIServiceTree`) - In-memory cache for SDC models and certain A&AI queries (`CacheProviderWithLoadingCache`) - Upgrade TOSCA Parser and add parsing options; fix malformed TOSCA models - Resolve Cloud-Owner values for MSO - Pass X-ONAP headers to MSO Infrastructure -------------- - Remove codehaus' jackson mapper; use soley fasterxml 2.9.7 - Surefire invokes both TestNG and JUnit tests - Support Kotlin source files - AaiController2 which handles errors in a "Spring manner" - Inline generated-sources and remove jsonschema2pojo Quality -------- - Cumulative bug fixes (A&AI API, UI timeouts, and many more) - Many Sonar issues cleaned-up - Some unused classes removed - Minor changes in vid-automation project, allowing some API verification to run Hard Merges ------------ - HTTP Clients (MSO, A&AI, WebConfig, OutgoingRequestHeadersTest) - Moved `package org.onap.vid.controllers` to `controller`, without plural -- just to keep semantic sync with ECOMP. Reference commit in ECOMP: 3d1141625 Issue-ID: VID-378 Change-Id: I9c8d1e74caa41815891d441fc0760bb5f29c5788 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/policy')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyResponseWrapperTest.java70
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestIntTest.java22
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java18
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java32
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java51
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/RestObjectTest.java48
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/rest/RequestDetailsTest.java33
7 files changed, 0 insertions, 274 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyResponseWrapperTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyResponseWrapperTest.java
deleted file mode 100644
index 4e2676c6a..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyResponseWrapperTest.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.onap.vid.policy;
-
-import org.junit.Test;
-
-public class PolicyResponseWrapperTest {
-
- private PolicyResponseWrapper createTestSubject() {
- return new PolicyResponseWrapper();
- }
-
- @Test
- public void testGetEntity() throws Exception {
- PolicyResponseWrapper testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getEntity();
- }
-
- @Test
- public void testGetStatus() throws Exception {
- PolicyResponseWrapper testSubject;
- int result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getStatus();
- }
-
- @Test
- public void testSetStatus() throws Exception {
- PolicyResponseWrapper testSubject;
- int v = 0;
-
- // default test
- testSubject = createTestSubject();
- testSubject.setStatus(v);
- }
-
- @Test
- public void testSetEntity() throws Exception {
- PolicyResponseWrapper testSubject;
- String v = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setEntity(v);
- }
-
- @Test
- public void testToString() throws Exception {
- PolicyResponseWrapper testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.toString();
- }
-
- @Test
- public void testGetResponse() throws Exception {
- PolicyResponseWrapper testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getResponse();
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestIntTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestIntTest.java
deleted file mode 100644
index b94d21b91..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestIntTest.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.onap.vid.policy;
-
-import org.junit.Test;
-import org.onap.vid.policy.rest.RequestDetails;
-
-public class PolicyRestIntTest {
-
- private PolicyRestInt createTestSubject() {
- return new PolicyRestInt();
- }
-
- @Test
- public void testLogRequest() throws Exception {
- PolicyRestInt testSubject;
- RequestDetails r = null;
-
- // test 1
- testSubject = createTestSubject();
- r = null;
- testSubject.logRequest(r);
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java
deleted file mode 100644
index bb21c89f0..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package org.onap.vid.policy;
-
-import org.junit.Test;
-
-public class PolicyRestInterfaceFactoryTest {
-
- private PolicyRestInterfaceFactory createTestSubject() {
- return new PolicyRestInterfaceFactory();
- }
-
- @Test
- public void testGetInstance() throws Exception {
- PolicyRestInterfaceIfc result;
-
- // default test
- result = PolicyRestInterfaceFactory.getInstance();
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java
deleted file mode 100644
index 05191fc5e..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.onap.vid.policy;
-
-import org.json.simple.JSONObject;
-import org.junit.Test;
-import org.onap.vid.policy.rest.RequestDetails;
-
-public class PolicyRestInterfaceTest {
-
- private PolicyRestInterface createTestSubject() {
- return new PolicyRestInterface();
- }
-
- @Test
- public void testLogRequest() throws Exception {
- PolicyRestInterface testSubject;
- RequestDetails r = null;
-
- // default test
- testSubject = createTestSubject();
- testSubject.logRequest(r);
- }
-
- /*@Test
- public void testInitRestClient() throws Exception {
- PolicyRestInterface testSubject;
-
- // default test
- testSubject = createTestSubject();
- testSubject.initRestClient();
- }*/
-
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java
deleted file mode 100644
index 1629081a6..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.onap.vid.policy;
-
-import org.glassfish.jersey.client.ClientResponse;
-import org.junit.Assert;
-import org.junit.Test;
-
-public class PolicyUtilTest {
-
- private PolicyUtil createTestSubject() {
- return new PolicyUtil();
- }
-
- @Test
- public void testWrapResponse() throws Exception {
- String body = "";
- int statusCode = 0;
- PolicyResponseWrapper result;
-
- // default test
- result = PolicyUtil.wrapResponse(body, statusCode);
- }
-
-
- @Test
- public void testWrapResponse_2() throws Exception {
- RestObject<String> rs = null;
- PolicyResponseWrapper result;
-
- // test 1
- rs = null;
- result = PolicyUtil.wrapResponse(rs);
- Assert.assertNotNull(result);
- }
-
- @Test
- public void testConvertPojoToString() throws Exception {
- String result;
-
- // test 1
- result = PolicyUtil.convertPojoToString(null);
- Assert.assertEquals("", result);
- }
-
- @Test
- public void testMain() throws Exception {
- String[] args = new String[] { "" };
-
- // default test
- PolicyUtil.main(args);
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/RestObjectTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/RestObjectTest.java
deleted file mode 100644
index eab343ab0..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/RestObjectTest.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package org.onap.vid.policy;
-
-import org.junit.Test;
-
-public class RestObjectTest {
-
- private RestObject createTestSubject() {
- return new RestObject();
- }
-
- @Test
- public void testSet() throws Exception {
- RestObject testSubject;
-
- // default test
- testSubject = createTestSubject();
- testSubject.set(null);
- }
-
- @Test
- public void testGet() throws Exception {
- RestObject testSubject;
-
- // default test
- testSubject = createTestSubject();
- testSubject.get();
- }
-
- @Test
- public void testSetStatusCode() throws Exception {
- RestObject testSubject;
- int v = 0;
-
- // default test
- testSubject = createTestSubject();
- testSubject.setStatusCode(v);
- }
-
- @Test
- public void testGetStatusCode() throws Exception {
- RestObject testSubject;
- int result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getStatusCode();
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/rest/RequestDetailsTest.java
deleted file mode 100644
index 3c17a66a0..000000000
--- a/vid-app-common/src/test/java/org/onap/vid/policy/rest/RequestDetailsTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.onap.vid.policy.rest;
-
-import org.junit.Test;
-
-
-public class RequestDetailsTest {
-
- private RequestDetails createTestSubject() {
- return new RequestDetails();
- }
-
-
- @Test
- public void testGetPolicyName() throws Exception {
- RequestDetails testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getPolicyName();
- }
-
-
- @Test
- public void testSetPolicyName() throws Exception {
- RequestDetails testSubject;
- String policyName = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setPolicyName(policyName);
- }
-} \ No newline at end of file