Reformat PolicyEngineAPI test cases
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / test / PushPolicyParametersTest.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.test;
24
25 import java.util.UUID;
26 import org.junit.*;
27 import org.onap.policy.api.PushPolicyParameters;
28 import static org.junit.Assert.*;
29
30 /**
31  * The class <code>PushPolicyParametersTest</code> contains tests for the class
32  * <code>{@link PushPolicyParameters}</code>.
33  *
34  * @generatedBy CodePro at 6/1/16 1:40 PM
35  * @version $Revision: 1.0 $
36  */
37 public class PushPolicyParametersTest {
38     /**
39      * Run the PushPolicyParameters() constructor test.
40      *
41      * @throws Exception
42      *
43      * @generatedBy CodePro at 6/1/16 1:40 PM
44      */
45     @Test
46     public void testPushPolicyParameters_1() throws Exception {
47
48         PushPolicyParameters result = new PushPolicyParameters();
49
50         // add additional test code here
51         assertNotNull(result);
52         assertEquals(null, result.getPolicyName());
53         assertEquals(null, result.getRequestID());
54         assertEquals(null, result.getPolicyType());
55         assertEquals(null, result.getPdpGroup());
56     }
57
58     /**
59      * Run the PushPolicyParameters(String,String,String,UUID) constructor test.
60      *
61      * @throws Exception
62      *
63      * @generatedBy CodePro at 6/1/16 1:40 PM
64      */
65     @Test
66     public void testPushPolicyParameters_2() throws Exception {
67         String policyName = "";
68         String policyType = "";
69         String pdpGroup = "";
70         UUID requestID = UUID.randomUUID();
71
72         PushPolicyParameters result =
73                 new PushPolicyParameters(policyName, policyType, pdpGroup, requestID);
74
75         // add additional test code here
76         assertNotNull(result);
77         assertEquals("", result.getPolicyName());
78         assertEquals("", result.getPolicyType());
79         assertEquals("", result.getPdpGroup());
80     }
81
82     /**
83      * Run the String getPdpGroup() method test.
84      *
85      * @throws Exception
86      *
87      * @generatedBy CodePro at 6/1/16 1:40 PM
88      */
89     @Test
90     public void testGetPdpGroup_1() throws Exception {
91         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
92
93         String result = fixture.getPdpGroup();
94
95         // add additional test code here
96         assertEquals("", result);
97     }
98
99     /**
100      * Run the String getPolicyName() method test.
101      *
102      * @throws Exception
103      *
104      * @generatedBy CodePro at 6/1/16 1:40 PM
105      */
106     @Test
107     public void testGetPolicyName_1() throws Exception {
108         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
109
110         String result = fixture.getPolicyName();
111
112         // add additional test code here
113         assertEquals("", result);
114     }
115
116     /**
117      * Run the String getPolicyType() method test.
118      *
119      * @throws Exception
120      *
121      * @generatedBy CodePro at 6/1/16 1:40 PM
122      */
123     @Test
124     public void testGetPolicyType_1() throws Exception {
125         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
126
127         String result = fixture.getPolicyType();
128
129         // add additional test code here
130         assertEquals("", result);
131     }
132
133     /**
134      * Run the UUID getRequestID() method test.
135      *
136      * @throws Exception
137      *
138      * @generatedBy CodePro at 6/1/16 1:40 PM
139      */
140     @Test
141     public void testGetRequestID() throws Exception {
142         PushPolicyParameters fixture = new PushPolicyParameters("", "", "",
143                 UUID.fromString("d1dbaac1-0944-4f07-9ce7-733c697537ea"));
144
145         UUID result = fixture.getRequestID();
146
147         // add additional test code here
148         assertNotNull(result);
149         assertEquals("d1dbaac1-0944-4f07-9ce7-733c697537ea", result.toString());
150         assertEquals(4, result.version());
151         assertEquals(2, result.variant());
152         assertEquals(-7140611980868110358L, result.getLeastSignificantBits());
153         assertEquals(-3324876153822097657L, result.getMostSignificantBits());
154     }
155
156     /**
157      * Run the void setPdpGroup(String) method test.
158      *
159      * @throws Exception
160      *
161      * @generatedBy CodePro at 6/1/16 1:40 PM
162      */
163     @Test
164     public void testSetPdpGroup_1() throws Exception {
165         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
166         String pdpGroup = "";
167
168         fixture.setPdpGroup(pdpGroup);
169
170         // add additional test code here
171     }
172
173     /**
174      * Run the void setPolicyName(String) method test.
175      *
176      * @throws Exception
177      *
178      * @generatedBy CodePro at 6/1/16 1:40 PM
179      */
180     @Test
181     public void testSetPolicyName_1() throws Exception {
182         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
183         String policyName = "";
184
185         fixture.setPolicyName(policyName);
186
187         // add additional test code here
188     }
189
190     /**
191      * Run the void setPolicyType(String) method test.
192      *
193      * @throws Exception
194      *
195      * @generatedBy CodePro at 6/1/16 1:40 PM
196      */
197     @Test
198     public void testSetPolicyType_1() throws Exception {
199         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
200         String policyType = "";
201
202         fixture.setPolicyType(policyType);
203
204         // add additional test code here
205     }
206
207     /**
208      * Run the void setRequestID(UUID) method test.
209      *
210      * @throws Exception
211      *
212      * @generatedBy CodePro at 6/1/16 1:40 PM
213      */
214     @Test
215     public void testSetRequestID_1() throws Exception {
216         PushPolicyParameters fixture = new PushPolicyParameters("", "", "", UUID.randomUUID());
217         UUID requestID = UUID.randomUUID();
218
219         fixture.setRequestID(requestID);
220
221         // add additional test code here
222     }
223
224     /**
225      * Perform pre-test initialization.
226      *
227      * @throws Exception if the initialization fails for some reason
228      *
229      * @generatedBy CodePro at 6/1/16 1:40 PM
230      */
231     @Before
232     public void setUp() throws Exception {
233         // add additional set up code here
234     }
235
236     /**
237      * Perform post-test clean-up.
238      *
239      * @throws Exception if the clean-up fails for some reason
240      *
241      * @generatedBy CodePro at 6/1/16 1:40 PM
242      */
243     @After
244     public void tearDown() throws Exception {
245         // Add additional tear down code here
246     }
247
248     /**
249      * Launch the test.
250      *
251      * @param args the command line arguments
252      *
253      * @generatedBy CodePro at 6/1/16 1:40 PM
254      */
255     public static void main(String[] args) {
256         new org.junit.runner.JUnitCore().run(PushPolicyParametersTest.class);
257     }
258 }