Reformat PolicyEngineAPI test cases
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / StdPolicyChangeResponseTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
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
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
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=========================================================
21  */
22
23 package org.onap.policy.std.test;
24
25 import org.junit.*;
26 import org.onap.policy.std.StdPolicyChangeResponse;
27 import static org.junit.Assert.*;
28
29 /**
30  * The class <code>StdPolicyChangeResponseTest</code> contains tests for the class
31  * <code>{@link StdPolicyChangeResponse}</code>.
32  *
33  * @generatedBy CodePro at 6/1/16 1:40 PM
34  * @version $Revision: 1.0 $
35  */
36 public class StdPolicyChangeResponseTest {
37     /**
38      * Run the StdPolicyChangeResponse() constructor test.
39      *
40      * @generatedBy CodePro at 6/1/16 1:40 PM
41      */
42     @Test
43     public void testStdPolicyChangeResponse_1() throws Exception {
44         StdPolicyChangeResponse result = new StdPolicyChangeResponse();
45         assertNotNull(result);
46         // add additional test code here
47     }
48
49     /**
50      * Run the int getResponseCode() method test.
51      *
52      * @throws Exception
53      *
54      * @generatedBy CodePro at 6/1/16 1:40 PM
55      */
56     @Test
57     public void testGetResponseCode_1() throws Exception {
58         StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
59         fixture.setResponseMessage("");
60         fixture.setResponseCode(1);
61
62         int result = fixture.getResponseCode();
63
64         // add additional test code here
65         assertEquals(1, result);
66     }
67
68     /**
69      * Run the String getResponseMessage() method test.
70      *
71      * @throws Exception
72      *
73      * @generatedBy CodePro at 6/1/16 1:40 PM
74      */
75     @Test
76     public void testGetResponseMessage_1() throws Exception {
77         StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
78         fixture.setResponseMessage("");
79         fixture.setResponseCode(1);
80
81         String result = fixture.getResponseMessage();
82
83         // add additional test code here
84         assertEquals("", result);
85     }
86
87     /**
88      * Run the void setResponseCode(int) method test.
89      *
90      * @throws Exception
91      *
92      * @generatedBy CodePro at 6/1/16 1:40 PM
93      */
94     @Test
95     public void testSetResponseCode_1() throws Exception {
96         StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
97         fixture.setResponseMessage("");
98         fixture.setResponseCode(1);
99         int responseCode = 1;
100
101         fixture.setResponseCode(responseCode);
102
103         // add additional test code here
104     }
105
106     /**
107      * Run the void setResponseMessage(String) method test.
108      *
109      * @throws Exception
110      *
111      * @generatedBy CodePro at 6/1/16 1:40 PM
112      */
113     @Test
114     public void testSetResponseMessage_1() throws Exception {
115         StdPolicyChangeResponse fixture = new StdPolicyChangeResponse();
116         fixture.setResponseMessage("");
117         fixture.setResponseCode(1);
118         String responseMessage = "";
119
120         fixture.setResponseMessage(responseMessage);
121
122         // add additional test code here
123     }
124
125     /**
126      * Perform pre-test initialization.
127      *
128      * @throws Exception if the initialization fails for some reason
129      *
130      * @generatedBy CodePro at 6/1/16 1:40 PM
131      */
132     @Before
133     public void setUp() throws Exception {
134         // add additional set up code here
135     }
136
137     /**
138      * Perform post-test clean-up.
139      *
140      * @throws Exception if the clean-up fails for some reason
141      *
142      * @generatedBy CodePro at 6/1/16 1:40 PM
143      */
144     @After
145     public void tearDown() throws Exception {
146         // Add additional tear down code here
147     }
148
149     /**
150      * Launch the test.
151      *
152      * @param args the command line arguments
153      *
154      * @generatedBy CodePro at 6/1/16 1:40 PM
155      */
156     public static void main(String[] args) {
157         new org.junit.runner.JUnitCore().run(StdPolicyChangeResponseTest.class);
158     }
159 }