df236c92eca1b6307995ce682da85d9bffb4869a
[dmaap/messagerouter/dmaapclient.git] / src / test / java / org / onap / dmaap / mr / dme / client / HeaderReplyHandlerTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.dmaap.mr.dme.client;
22
23 import static org.junit.Assert.assertTrue;
24
25 import java.lang.reflect.Constructor;
26 import java.lang.reflect.InvocationTargetException;
27 import java.lang.reflect.Method;
28 import java.util.ArrayList;
29 import java.util.concurrent.TimeUnit;
30
31 import org.junit.After;
32 import org.junit.Before;
33 import org.junit.Test;
34
35 import org.onap.dmaap.mr.client.HostSelector;
36 import org.onap.dmaap.mr.client.MRPublisher.message;
37 import org.onap.dmaap.mr.test.support.MRBatchingPublisherMock.Listener;
38
39 public class HeaderReplyHandlerTest {
40         private HeaderReplyHandler handler = null;
41
42         @Before
43         public void setUp() throws Exception {
44                 handler = new HeaderReplyHandler();
45
46         }
47
48         @After
49         public void tearDown() throws Exception {
50
51         }
52
53         @Test
54         public void testHandleFault() {
55
56                 handler.handleFault(null);
57                 assertTrue(true);
58
59         }
60         
61         @Test
62         public void testHandleEndpointFault() {
63
64                 handler.handleEndpointFault(null);
65                 assertTrue(true);
66
67         }
68         
69         @Test
70         public void testHandleReply() {
71
72                 handler.handleReply(null);
73                 assertTrue(true);
74
75         }
76         
77         
78
79 }