Remove insecure dependency on PolicyEngineAPI
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / ManualClientEndTest.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.onap.policy.std.test;
22
23 import static org.junit.Assert.assertNotNull;
24 import static org.junit.Assert.assertNull;
25
26 import java.net.URI;
27 import java.net.URL;
28
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.ManualClientEnd;
35
36 /**
37  * The class <code>ManualClientEndTest</code> contains tests for the class <code>{@link ManualClientEnd}</code>.
38  *
39  * @generatedBy CodePro at 6/1/16 1:41 PM
40  * @version $Revision: 1.0 $
41  */
42 public class ManualClientEndTest {
43         /**
44          * Run the ManualClientEnd() constructor test.
45          *
46          * @generatedBy CodePro at 6/1/16 1:41 PM
47          */
48         @Test
49         public void testManualClientEnd_1()
50                 throws Exception {
51                 ManualClientEnd mce = new ManualClientEnd(new URI("http://www.onap.org"));
52                 assertNotNull(mce);
53                 mce.close();
54                 // add additional test code here
55         }
56
57
58         /**
59          * Run the PDPNotification result(NotificationScheme) method test.
60          *
61          * @throws Exception
62          *
63          * @generatedBy CodePro at 6/1/16 1:41 PM
64          */
65         @Test
66         public void testResult_1()
67                 throws Exception {
68                 NotificationScheme scheme = NotificationScheme.AUTO_ALL_NOTIFICATIONS;
69
70                 PDPNotification result = ManualClientEnd.result(scheme);
71
72                 assertNull(result);
73         }
74
75
76         /**
77          * Run the void start(String) method test.
78          *
79          * @throws Exception
80          *
81          * @generatedBy CodePro at 6/1/16 1:41 PM
82          */
83         @Test
84         public void testStart_1()
85                 throws Exception {
86                 String url = "This is not a URL";
87
88                 ManualClientEnd.start(url);
89
90         }
91
92         /**
93          * Perform pre-test initialization.
94          *
95          * @throws Exception
96          *         if the initialization fails for some reason
97          *
98          * @generatedBy CodePro at 6/1/16 1:41 PM
99          */
100         @Before
101         public void setUp()
102                 throws Exception {
103                 // add additional set up code here
104         }
105
106         /**
107          * Perform post-test clean-up.
108          *
109          * @throws Exception
110          *         if the clean-up fails for some reason
111          *
112          * @generatedBy CodePro at 6/1/16 1:41 PM
113          */
114         @After
115         public void tearDown()
116                 throws Exception {
117                 // Add additional tear down code here
118         }
119
120         /**
121          * Launch the test.
122          *
123          * @param args the command line arguments
124          *
125          * @generatedBy CodePro at 6/1/16 1:41 PM
126          */
127         public static void main(String[] args) {
128                 new org.junit.runner.JUnitCore().run(ManualClientEndTest.class);
129         }
130 }