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.StdPolicyChangeResponse;
26 import static org.junit.Assert.*;
29 * The class <code>StdPolicyChangeResponseTest</code> contains tests for the class <code>{@link StdPolicyChangeResponse}</code>.
31 * @generatedBy CodePro at 6/1/16 1:40 PM
32 * @version $Revision: 1.0 $
34 public class StdPolicyChangeResponseTest {
36 * Run the StdPolicyChangeResponse() constructor test.
38 * @generatedBy CodePro at 6/1/16 1:40 PM
41 public void testStdPolicyChangeResponse_1()
43 StdPolicyChangeResponse result = new StdPolicyChangeResponse();
44 assertNotNull(result);
45 // add additional test code here
49 * Run the int getResponseCode() method test.
53 * @generatedBy CodePro at 6/1/16 1:40 PM
56 public void testGetResponseCode_1()
58 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
59 fixture.setResponseMessage("");
60 fixture.setResponseCode(1);
62 int result = fixture.getResponseCode();
64 // add additional test code here
65 assertEquals(1, result);
69 * Run the String getResponseMessage() method test.
73 * @generatedBy CodePro at 6/1/16 1:40 PM
76 public void testGetResponseMessage_1()
78 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
79 fixture.setResponseMessage("");
80 fixture.setResponseCode(1);
82 String result = fixture.getResponseMessage();
84 // add additional test code here
85 assertEquals("", result);
89 * Run the void setResponseCode(int) method test.
93 * @generatedBy CodePro at 6/1/16 1:40 PM
96 public void testSetResponseCode_1()
98 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
99 fixture.setResponseMessage("");
100 fixture.setResponseCode(1);
101 int responseCode = 1;
103 fixture.setResponseCode(responseCode);
105 // add additional test code here
109 * Run the void setResponseMessage(String) method test.
113 * @generatedBy CodePro at 6/1/16 1:40 PM
116 public void testSetResponseMessage_1()
118 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
119 fixture.setResponseMessage("");
120 fixture.setResponseCode(1);
121 String responseMessage = "";
123 fixture.setResponseMessage(responseMessage);
125 // add additional test code here
129 * Perform pre-test initialization.
132 * if the initialization fails for some reason
134 * @generatedBy CodePro at 6/1/16 1:40 PM
139 // add additional set up code here
143 * Perform post-test clean-up.
146 * if the clean-up fails for some reason
148 * @generatedBy CodePro at 6/1/16 1:40 PM
151 public void tearDown()
153 // Add additional tear down code here
159 * @param args the command line arguments
161 * @generatedBy CodePro at 6/1/16 1:40 PM
163 public static void main(String[] args) {
164 new org.junit.runner.JUnitCore().run(StdPolicyChangeResponseTest.class);