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;
24 import org.onap.policy.std.StdRemovedPolicy;
26 import static org.junit.Assert.*;
29 * The class <code>StdRemovedPolicyTest</code> contains tests for the class <code>{@link StdRemovedPolicy}</code>.
31 * @generatedBy CodePro at 6/1/16 1:40 PM
32 * @version $Revision: 1.0 $
34 public class StdRemovedPolicyTest {
36 * Run the StdRemovedPolicy() constructor test.
38 * @generatedBy CodePro at 6/1/16 1:40 PM
41 public void testStdRemovedPolicy_1()
43 StdRemovedPolicy result = new StdRemovedPolicy();
44 assertNotNull(result);
45 // add additional test code here
49 * Run the String getPolicyName() method test.
53 * @generatedBy CodePro at 6/1/16 1:40 PM
56 public void testGetPolicyName_1()
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()
78 StdRemovedPolicy fixture = new StdRemovedPolicy();
79 fixture.setVersionNo("");
80 fixture.setPolicyName((String) null);
82 String result = fixture.getPolicyName();
84 // add additional test code here
85 assertEquals(null, result);
89 * Run the String getPolicyName() method test.
93 * @generatedBy CodePro at 6/1/16 1:40 PM
96 public void testGetPolicyName_3()
98 StdRemovedPolicy fixture = new StdRemovedPolicy();
99 fixture.setVersionNo("");
100 fixture.setPolicyName("");
102 String result = fixture.getPolicyName();
104 // add additional test code here
105 assertEquals("", result);
109 * Run the String getVersionNo() method test.
113 * @generatedBy CodePro at 6/1/16 1:40 PM
116 public void testGetVersionNo_1()
118 StdRemovedPolicy fixture = new StdRemovedPolicy();
119 fixture.setVersionNo("");
120 fixture.setPolicyName("");
122 String result = fixture.getVersionNo();
124 // add additional test code here
125 assertEquals("", result);
129 * Run the void setPolicyName(String) method test.
133 * @generatedBy CodePro at 6/1/16 1:40 PM
136 public void testSetPolicyName_1()
138 StdRemovedPolicy fixture = new StdRemovedPolicy();
139 fixture.setVersionNo("");
140 fixture.setPolicyName("");
141 String policyName = "";
143 fixture.setPolicyName(policyName);
145 // add additional test code here
149 * Run the void setVersionNo(String) method test.
153 * @generatedBy CodePro at 6/1/16 1:40 PM
156 public void testSetVersionNo_1()
158 StdRemovedPolicy fixture = new StdRemovedPolicy();
159 fixture.setVersionNo("");
160 fixture.setPolicyName("");
161 String versionNo = "";
163 fixture.setVersionNo(versionNo);
165 // add additional test code here
169 * Perform pre-test initialization.
172 * if the initialization fails for some reason
174 * @generatedBy CodePro at 6/1/16 1:40 PM
179 // add additional set up code here
183 * Perform post-test clean-up.
186 * if the clean-up fails for some reason
188 * @generatedBy CodePro at 6/1/16 1:40 PM
191 public void tearDown()
193 // Add additional tear down code here
199 * @param args the command line arguments
201 * @generatedBy CodePro at 6/1/16 1:40 PM
203 public static void main(String[] args) {
204 new org.junit.runner.JUnitCore().run(StdRemovedPolicyTest.class);