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.onap.policy.std.test;
23 import static org.junit.Assert.assertNotNull;
24 import static org.junit.Assert.assertNull;
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;
37 * The class <code>ManualClientEndTest</code> contains tests for the class <code>{@link ManualClientEnd}</code>.
39 * @generatedBy CodePro at 6/1/16 1:41 PM
40 * @version $Revision: 1.0 $
42 public class ManualClientEndTest {
44 * Run the ManualClientEnd() constructor test.
46 * @generatedBy CodePro at 6/1/16 1:41 PM
49 public void testManualClientEnd_1()
51 ManualClientEnd mce = new ManualClientEnd(new URI("http://www.onap.org"));
54 // add additional test code here
59 * Run the PDPNotification result(NotificationScheme) method test.
63 * @generatedBy CodePro at 6/1/16 1:41 PM
66 public void testResult_1()
68 NotificationScheme scheme = NotificationScheme.AUTO_ALL_NOTIFICATIONS;
70 PDPNotification result = ManualClientEnd.result(scheme);
77 * Run the void start(String) method test.
81 * @generatedBy CodePro at 6/1/16 1:41 PM
84 public void testStart_1()
86 String url = "This is not a URL";
88 ManualClientEnd.start(url);
93 * Perform pre-test initialization.
96 * if the initialization fails for some reason
98 * @generatedBy CodePro at 6/1/16 1:41 PM
103 // add additional set up code here
107 * Perform post-test clean-up.
110 * if the clean-up fails for some reason
112 * @generatedBy CodePro at 6/1/16 1:41 PM
115 public void tearDown()
117 // Add additional tear down code here
123 * @param args the command line arguments
125 * @generatedBy CodePro at 6/1/16 1:41 PM
127 public static void main(String[] args) {
128 new org.junit.runner.JUnitCore().run(ManualClientEndTest.class);