2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.policy.std.test;
23 import java.util.LinkedList;
24 import java.util.List;
27 import org.mockito.Mockito;
28 import org.mockito.invocation.InvocationOnMock;
29 import org.mockito.stubbing.Answer;
30 import org.openecomp.policy.api.NotificationScheme;
31 import org.openecomp.policy.api.PDPNotification;
32 import org.openecomp.policy.std.ManualClientEndUEB;
33 import org.openecomp.policy.std.NotificationUnMarshal;
34 import org.openecomp.policy.std.StdPDPNotification;
36 import static org.junit.Assert.*;
39 * The class <code>ManualClientEndUEBTest</code> contains tests for the class <code>{@link ManualClientEndUEB}</code>.
41 * @generatedBy CodePro at 6/1/16 1:40 PM
42 * @version $Revision: 1.0 $
44 public class ManualClientEndUEBTest {
46 String resultJson = "{'test':'testing'}";
47 String json = "{\"test\":\"testing\"}";
48 StdPDPNotification notification = new StdPDPNotification();
49 ManualClientEndUEB mockManualClient = null;
51 * Perform pre-test initialization.
54 * if the initialization fails for some reason
56 * @generatedBy CodePro at 6/1/16 1:40 PM
61 String url = "http://test.com";
62 String uniqueID = "test";
63 List<String> uebURLList = new LinkedList<String>();
68 * Run the ManualClientEndUEB() constructor test.
70 * @generatedBy CodePro at 6/1/16 1:40 PM
73 public void testManualClientEndUEB_1()
75 ManualClientEndUEB result = new ManualClientEndUEB();
76 assertNotNull(result);
77 // add additional test code here
81 * Run the void createTopic(String,String,List<String>) method test.
85 * @generatedBy CodePro at 6/1/16 1:40 PM
88 public void testCreateTopic_1()
90 String url = "http://test.com";
91 String uniqueID = "test";
92 List<String> uebURLList = new LinkedList<String>();
95 ManualClientEndUEB.createTopic(url, uniqueID, uebURLList);
100 * Run the PDPNotification result(NotificationScheme) method test.
104 * @generatedBy CodePro at 6/1/16 1:40 PM
107 public void testResult_1()
109 NotificationScheme scheme = NotificationScheme.AUTO_ALL_NOTIFICATIONS;
111 PDPNotification result = ManualClientEndUEB.result(scheme);
118 * Run the void start(String,List<String>,String) method test.
122 * @generatedBy CodePro at 6/1/16 1:40 PM
125 public void testStart_1()
127 String url = "http://test.com";
128 List<String> uebURLList = new LinkedList<String>();
129 String uniqueID = "test";
132 ManualClientEndUEB.start(url, uebURLList, uniqueID);
134 // add additional test code here
135 // An unexpected exception was thrown in user code while executing this test:
136 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.ManualClientEndUEB
141 * Perform post-test clean-up.
144 * if the clean-up fails for some reason
146 * @generatedBy CodePro at 6/1/16 1:40 PM
149 public void tearDown()
151 // Add additional tear down code here
157 * @param args the command line arguments
159 * @generatedBy CodePro at 6/1/16 1:40 PM
161 public static void main(String[] args) {
162 new org.junit.runner.JUnitCore().run(ManualClientEndUEBTest.class);