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.StdPolicyChangeResponse;
27 import static org.junit.Assert.*;
30 * The class <code>StdPolicyChangeResponseTest</code> contains tests for the class
31 * <code>{@link StdPolicyChangeResponse}</code>.
33 * @generatedBy CodePro at 6/1/16 1:40 PM
34 * @version $Revision: 1.0 $
36 public class StdPolicyChangeResponseTest {
38 * Run the StdPolicyChangeResponse() constructor test.
40 * @generatedBy CodePro at 6/1/16 1:40 PM
43 public void testStdPolicyChangeResponse_1() throws Exception {
44 StdPolicyChangeResponse result = new StdPolicyChangeResponse();
45 assertNotNull(result);
46 // add additional test code here
50 * Run the int getResponseCode() method test.
54 * @generatedBy CodePro at 6/1/16 1:40 PM
57 public void testGetResponseCode_1() throws Exception {
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() throws Exception {
77 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
78 fixture.setResponseMessage("");
79 fixture.setResponseCode(1);
81 String result = fixture.getResponseMessage();
83 // add additional test code here
84 assertEquals("", result);
88 * Run the void setResponseCode(int) method test.
92 * @generatedBy CodePro at 6/1/16 1:40 PM
95 public void testSetResponseCode_1() throws Exception {
96 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
97 fixture.setResponseMessage("");
98 fixture.setResponseCode(1);
101 fixture.setResponseCode(responseCode);
103 // add additional test code here
107 * Run the void setResponseMessage(String) method test.
111 * @generatedBy CodePro at 6/1/16 1:40 PM
114 public void testSetResponseMessage_1() throws Exception {
115 StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
116 fixture.setResponseMessage("");
117 fixture.setResponseCode(1);
118 String responseMessage = "";
120 fixture.setResponseMessage(responseMessage);
122 // add additional test code here
126 * Perform pre-test initialization.
128 * @throws Exception if the initialization fails for some reason
130 * @generatedBy CodePro at 6/1/16 1:40 PM
133 public void setUp() throws Exception {
134 // add additional set up code here
138 * Perform post-test clean-up.
140 * @throws Exception if the clean-up fails for some reason
142 * @generatedBy CodePro at 6/1/16 1:40 PM
145 public void tearDown() throws Exception {
146 // Add additional tear down code here
152 * @param args the command line arguments
154 * @generatedBy CodePro at 6/1/16 1:40 PM
156 public static void main(String[] args) {
157 new org.junit.runner.JUnitCore().run(StdPolicyChangeResponseTest.class);