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