2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
23 package org.onap.policy.std.test;
26 import org.onap.policy.std.StdRemovedPolicy;
27 import static org.junit.Assert.*;
30 * The class <code>StdRemovedPolicyTest</code> contains tests for the class
31 * <code>{@link StdRemovedPolicy}</code>.
33 * @generatedBy CodePro at 6/1/16 1:40 PM
34 * @version $Revision: 1.0 $
36 public class StdRemovedPolicyTest {
38 * Run the StdRemovedPolicy() constructor test.
40 * @generatedBy CodePro at 6/1/16 1:40 PM
43 public void testStdRemovedPolicy_1() throws Exception {
44 StdRemovedPolicy result = new StdRemovedPolicy();
45 assertNotNull(result);
46 // add additional test code here
50 * Run the String getPolicyName() method test.
54 * @generatedBy CodePro at 6/1/16 1:40 PM
57 public void testGetPolicyName_1() throws Exception {
58 StdRemovedPolicy fixture = new StdRemovedPolicy();
59 fixture.setVersionNo("");
60 fixture.setPolicyName("");
62 String result = fixture.getPolicyName();
64 // add additional test code here
65 assertEquals("", result);
69 * Run the String getPolicyName() method test.
73 * @generatedBy CodePro at 6/1/16 1:40 PM
76 public void testGetPolicyName_2() throws Exception {
77 StdRemovedPolicy fixture = new StdRemovedPolicy();
78 fixture.setVersionNo("");
79 fixture.setPolicyName((String) null);
81 String result = fixture.getPolicyName();
83 // add additional test code here
84 assertEquals(null, result);
88 * Run the String getPolicyName() method test.
92 * @generatedBy CodePro at 6/1/16 1:40 PM
95 public void testGetPolicyName_3() throws Exception {
96 StdRemovedPolicy fixture = new StdRemovedPolicy();
97 fixture.setVersionNo("");
98 fixture.setPolicyName("");
100 String result = fixture.getPolicyName();
102 // add additional test code here
103 assertEquals("", result);
107 * Run the String getVersionNo() method test.
111 * @generatedBy CodePro at 6/1/16 1:40 PM
114 public void testGetVersionNo_1() throws Exception {
115 StdRemovedPolicy fixture = new StdRemovedPolicy();
116 fixture.setVersionNo("");
117 fixture.setPolicyName("");
119 String result = fixture.getVersionNo();
121 // add additional test code here
122 assertEquals("", result);
126 * Run the void setPolicyName(String) method test.
130 * @generatedBy CodePro at 6/1/16 1:40 PM
133 public void testSetPolicyName_1() throws Exception {
134 StdRemovedPolicy fixture = new StdRemovedPolicy();
135 fixture.setVersionNo("");
136 fixture.setPolicyName("");
137 String policyName = "";
139 fixture.setPolicyName(policyName);
141 // add additional test code here
145 * Run the void setVersionNo(String) method test.
149 * @generatedBy CodePro at 6/1/16 1:40 PM
152 public void testSetVersionNo_1() throws Exception {
153 StdRemovedPolicy fixture = new StdRemovedPolicy();
154 fixture.setVersionNo("");
155 fixture.setPolicyName("");
156 String versionNo = "";
158 fixture.setVersionNo(versionNo);
160 // add additional test code here
164 * Perform pre-test initialization.
166 * @throws Exception if the initialization fails for some reason
168 * @generatedBy CodePro at 6/1/16 1:40 PM
171 public void setUp() throws Exception {
172 // add additional set up code here
176 * Perform post-test clean-up.
178 * @throws Exception if the clean-up fails for some reason
180 * @generatedBy CodePro at 6/1/16 1:40 PM
183 public void tearDown() throws Exception {
184 // Add additional tear down code here
190 * @param args the command line arguments
192 * @generatedBy CodePro at 6/1/16 1:40 PM
194 public static void main(String[] args) {
195 new org.junit.runner.JUnitCore().run(StdRemovedPolicyTest.class);