Policy 1707 commit to LF
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / openecomp / 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  * 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.openecomp.policy.std.test;
22
23 import static org.junit.Assert.assertNotNull;
24 import static org.junit.Assert.assertNull;
25
26 import java.util.LinkedList;
27 import java.util.List;
28
29 import org.junit.After;
30 import org.junit.Before;
31 import org.junit.Test;
32 import org.openecomp.policy.api.NotificationScheme;
33 import org.openecomp.policy.api.PDPNotification;
34 import org.openecomp.policy.std.ManualClientEndUEB;
35 import org.openecomp.policy.std.StdPDPNotification;
36
37 /**
38  * The class <code>ManualClientEndUEBTest</code> contains tests for the class <code>{@link ManualClientEndUEB}</code>.
39  *
40  * @generatedBy CodePro at 6/1/16 1:40 PM
41  * @version $Revision: 1.0 $
42  */
43 public class ManualClientEndUEBTest {
44         
45         String resultJson = "{'test':'testing'}";
46         String json = "{\"test\":\"testing\"}";
47         StdPDPNotification notification = new StdPDPNotification();
48         ManualClientEndUEB mockManualClient = null;
49         /**
50          * Perform pre-test initialization.
51          *
52          * @throws Exception
53          *         if the initialization fails for some reason
54          *
55          * @generatedBy CodePro at 6/1/16 1:40 PM
56          */
57         @Before
58         public void setUp()
59                 throws Exception {
60                 String url = "http://test.com";
61                 List<String> uebURLList = new LinkedList<String>();
62                 uebURLList.add(url);
63                                 
64         }
65         /**
66          * Run the ManualClientEndUEB() constructor test.
67          *
68          * @generatedBy CodePro at 6/1/16 1:40 PM
69          */
70         @Test
71         public void testManualClientEndUEB_1()
72                 throws Exception {
73                 ManualClientEndUEB result = new ManualClientEndUEB();
74                 assertNotNull(result);
75                 // add additional test code here
76         }
77
78         /**
79          * Run the void createTopic(String,String,List<String>) method test.
80          *
81          * @throws Exception
82          *
83          * @generatedBy CodePro at 6/1/16 1:40 PM
84          */
85         @Test
86         public void testCreateTopic_1()
87                 throws Exception {
88                 String url = "http://test.com";
89                 String uniqueID = "test";
90                 List<String> uebURLList = new LinkedList<String>();
91                 uebURLList.add(url);
92
93                 ManualClientEndUEB.createTopic(url, uniqueID, uebURLList);
94
95         }
96
97         /**
98          * Run the PDPNotification result(NotificationScheme) method test.
99          *
100          * @throws Exception
101          *
102          * @generatedBy CodePro at 6/1/16 1:40 PM
103          */
104         @Test
105         public void testResult_1()
106                 throws Exception {
107                 NotificationScheme scheme = NotificationScheme.AUTO_ALL_NOTIFICATIONS;
108
109                 PDPNotification result = ManualClientEndUEB.result(scheme);
110
111                 assertNull(result);
112         }
113
114
115         /**
116          * Run the void start(String,List<String>,String) method test.
117          *
118          * @throws Exception
119          *
120          * @generatedBy CodePro at 6/1/16 1:40 PM
121          */
122         @Test
123         public void testStart_1()
124                 throws Exception {
125                 String url = "http://test.com";
126                 List<String> uebURLList = new LinkedList<String>();
127                 String uniqueID = "test";
128                 uebURLList.add(url);
129
130                 ManualClientEndUEB.start(url, uebURLList, uniqueID);
131
132                 // add additional test code here
133                 // An unexpected exception was thrown in user code while executing this test:
134                 //    java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.ManualClientEndUEB
135         }
136
137
138         /**
139          * Perform post-test clean-up.
140          *
141          * @throws Exception
142          *         if the clean-up fails for some reason
143          *
144          * @generatedBy CodePro at 6/1/16 1:40 PM
145          */
146         @After
147         public void tearDown()
148                 throws Exception {
149                 // Add additional tear down code here
150         }
151
152         /**
153          * Launch the test.
154          *
155          * @param args the command line arguments
156          *
157          * @generatedBy CodePro at 6/1/16 1:40 PM
158          */
159         public static void main(String[] args) {
160                 new org.junit.runner.JUnitCore().run(ManualClientEndUEBTest.class);
161         }
162 }