521eafdf9ca06c93d65caa7fae4057e62734f887
[policy/engine.git] / ONAP-REST / src / test / java / org / onap / policy / rest / adapter / RainyDayParamsTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2018 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 package org.onap.policy.rest.adapter;
21
22 import static org.junit.Assert.assertTrue;
23
24 import java.util.ArrayList;
25
26 import org.junit.Test;
27
28 public class RainyDayParamsTest {
29
30         @Test
31         public void testRainyDayParams(){
32                 RainyDayParams params = new RainyDayParams();
33                 params.setServiceType("Test");
34                 assertTrue("Test".equals(params.getServiceType()));
35                 params.setVnfType("Test");
36                 assertTrue("Test".equals(params.getVnfType()));
37                 params.setBbid("Test");
38                 assertTrue("Test".equals(params.getBbid()));
39                 params.setWorkstep("Test");
40                 assertTrue("Test".equals(params.getWorkstep()));
41                 params.setTreatmentTableChoices(new ArrayList<>());
42                 assertTrue(params.getTreatmentTableChoices() != null);
43                 params.setErrorcode(new ArrayList<>());
44                 assertTrue(params.getErrorcode() != null);
45                 params.setTreatment(new ArrayList<>());
46                 assertTrue(params.getTreatment() != null);
47         }
48 }