diff options
-rw-r--r-- | INFO.yaml | 79 | ||||
-rw-r--r-- | src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java | 11 | ||||
-rw-r--r-- | src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java | 15 |
3 files changed, 71 insertions, 34 deletions
@@ -1,5 +1,5 @@ --- -project: 'dmaap-messagerouter-msgrtr' +project: 'dmaap-messagerouter-dmaapclient' project_creation_date: '2017-08-29' lifecycle_state: 'Incubation' project_lead: &onap_releng_ptl @@ -9,50 +9,67 @@ project_lead: &onap_releng_ptl company: 'ATT' timezone: 'America/Dallas' primary_contact: *onap_releng_ptl +project_category: '' issue_tracking: type: 'jira' url: 'https://jira.onap.org/projects/DMAAP' key: 'DMAAP' +mailing_list: + type: 'groups.io' + url: 'lists.onap.org' + tag: '<[sub-project_name]>' +realtime_discussion: '' meetings: - type: 'zoom' - agenda: '' - url: 'https://wiki.onap.org/pages/viewpage.action?pageId=13599275' - server: 'n/a' - channel: 'n/a' - repeats: 'weekly' - time: '13:00 UTC' + agenda: '' + url: 'https://wiki.onap.org/pages/viewpage.action?pageId=13599275' + server: 'n/a' + channel: 'n/a' + repeats: 'weekly' + time: '13:00 UTC' +repositories: + - 'dmaap-buscontroller' + - 'dmaap-datarouter' + - 'dmaap-dbcapi' + - 'dmaap-kafka11aaf' + - 'dmaap-messagerouter-dmaapclient' + - 'dmaap-messagerouter-messageservice' + - 'dmaap-messagerouter-mirroragent' + - 'dmaap-messagerouter-msgrtr' + - 'dmaap-oom' + - 'dmaap-zookeeper' committers: - <<: *onap_releng_ptl - name: 'Mandar Sawant' - email: 'ms5838@att.com' - company: 'ATT' - id: 'sawantmandar' - timezone: 'America/Dallas' + email: 'ms5838@att.com' + company: 'ATT' + id: 'sawantmandar' + timezone: 'America/Dallas' - name: 'Varun Gudisena' - email: 'vg411h@att.com' - company: 'ATT' - id: 'vg411h' - timezone: 'America/Dallas' + email: 'vg411h@att.com' + company: 'ATT' + id: 'vg411h' + timezone: 'America/Dallas' - name: 'Bhanu Ramesh' - email: 'bg6954@att.com' - company: 'ATT' - id: 'BhanuRamesh' - timezone: 'America/Dallas' + email: 'bg6954@att.com' + company: 'ATT' + id: 'BhanuRamesh' + timezone: 'America/Dallas' - name: 'Dominic Lunanuova' - email: 'dgl@research.att.com' - company: 'ATT' - id: 'dglFromAtt' - timezone: 'America/Dallas' + email: 'dgl@research.att.com' + company: 'ATT' + id: 'dglFromAtt' + timezone: 'America/Dallas' - name: 'Sunil Unnava' - email: 'su622b@att.com' - company: 'ATT' - id: 'su622b' - timezone: 'America/Louisville' + email: 'su622b@att.com' + company: 'ATT' + id: 'su622b' + timezone: 'America/Louisville' - name: 'Conor Ward' - email: 'conor.ward@ericsson.com' - company: 'ericsson' - id: 'econwar' - timezone: 'America/Dallas' + email: 'conor.ward@ericsson.com' + company: 'ericsson' + id: 'econwar' + timezone: 'America/Dallas' tsc: approval: 'https://lists.onap.org/pipermail/onap-tsc' changes: diff --git a/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java b/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java index 044c1a1..c3a0bb1 100644 --- a/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java +++ b/src/test/java/org/onap/dmaap/mr/dme/client/HeaderReplyHandlerTest.java @@ -22,11 +22,15 @@ package org.onap.dmaap.mr.dme.client; import static org.junit.Assert.assertTrue; +import java.util.HashMap; +import java.util.Map; import org.junit.After; import org.junit.Before; import org.junit.Test; +import com.att.aft.dme2.api.util.DME2ExchangeResponseContext; + public class HeaderReplyHandlerTest { private HeaderReplyHandler handler = null; @@ -59,8 +63,13 @@ public class HeaderReplyHandlerTest { @Test public void testHandleReply() { + + Map <String, String>responseHeaders = new HashMap<String, String>(); + responseHeaders.put("transactionId", "1234"); - handler.handleReply(null); + DME2ExchangeResponseContext responseData = new DME2ExchangeResponseContext ("service", + 200, new HashMap <String, String>(), responseHeaders, "routeOffer", "1.0.0", "http://"); + handler.handleReply(responseData); assertTrue(true); } diff --git a/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java b/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java index c8d7f64..9d3292e 100644 --- a/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java +++ b/src/test/java/org/onap/dmaap/mr/dme/client/PreferredRouteReplyHandlerTest.java @@ -20,10 +20,15 @@ package org.onap.dmaap.mr.dme.client; +import java.util.HashMap; +import java.util.Map; + import org.junit.After; import org.junit.Before; import org.junit.Test; +import com.att.aft.dme2.api.util.DME2ExchangeResponseContext; + public class PreferredRouteReplyHandlerTest { private PreferredRouteReplyHandler handler = null; @@ -40,9 +45,15 @@ public class PreferredRouteReplyHandlerTest { @Test public void testHandleReply() { + + Map <String, String> responseHeaders = new HashMap <String, String>(); + responseHeaders.put("transactionId", "1234"); + + DME2ExchangeResponseContext responseData = new DME2ExchangeResponseContext ("service", + 200, new HashMap<String, String>(), responseHeaders, "routeOffer", "1.0.0", "http://"); -// handler.handleReply(null); -// assertTrue(true); + handler.handleReply(responseData); + assert(true); } |