f8af9c4f27fe9c109c40f36fe7886abf8ea32a23
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / ManualClientEndUEBTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Modifications Copyright (C) 2019 Samsung
8  * ================================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.policy.std.test;
24
25 import static org.junit.Assert.assertNotNull;
26 import static org.junit.Assert.assertNull;
27 import java.util.LinkedList;
28 import java.util.List;
29 import org.junit.After;
30 import org.junit.Before;
31 import org.junit.Test;
32 import org.onap.policy.api.NotificationScheme;
33 import org.onap.policy.api.PDPNotification;
34 import org.onap.policy.std.ManualClientEndUEB;
35 import org.onap.policy.std.StdPDPNotification;
36
37 /**
38  * The class <code>ManualClientEndUEBTest</code> contains tests for the class
39  * <code>{@link ManualClientEndUEB}</code>.
40  *
41  * @generatedBy CodePro at 6/1/16 1:40 PM
42  * @version $Revision: 1.0 $
43  */
44 public class ManualClientEndUEBTest {
45
46     String resultJson = "{'test':'testing'}";
47     String json = "{\"test\":\"testing\"}";
48     StdPDPNotification notification = new StdPDPNotification();
49     ManualClientEndUEB mockManualClient = null;
50
51     /**
52      * Perform pre-test initialization.
53      *
54      * @throws Exception if the initialization fails for some reason
55      *
56      * @generatedBy CodePro at 6/1/16 1:40 PM
57      */
58     @Before
59     public void setUp() throws Exception {
60         String url = "http://test.com";
61         List<String> uebURLList = new LinkedList<String>();
62         uebURLList.add(url);
63
64     }
65
66     /**
67      * Run the PDPNotification result(NotificationScheme) method test.
68      *
69      * @throws Exception
70      *
71      * @generatedBy CodePro at 6/1/16 1:40 PM
72      */
73     @Test
74     public void testResult_1() throws Exception {
75         NotificationScheme scheme = NotificationScheme.AUTO_ALL_NOTIFICATIONS;
76
77         PDPNotification result = ManualClientEndUEB.result(scheme);
78
79         assertNull(result);
80     }
81
82     /**
83      * Perform post-test clean-up.
84      *
85      * @throws Exception if the clean-up fails for some reason
86      *
87      * @generatedBy CodePro at 6/1/16 1:40 PM
88      */
89     @After
90     public void tearDown() throws Exception {
91         // Add additional tear down code here
92     }
93
94     /**
95      * Launch the test.
96      *
97      * @param args the command line arguments
98      *
99      * @generatedBy CodePro at 6/1/16 1:40 PM
100      */
101     public static void main(String[] args) {
102         new org.junit.runner.JUnitCore().run(ManualClientEndUEBTest.class);
103     }
104 }