Merge "Reorder modifiers"
[so.git] / bpmn / MSOCommonBPMN / src / test / java / org / openecomp / mso / bpmn / common / recipe / ResourceRecipeRequestTest.java
1 /*
2 * ============LICENSE_START=======================================================
3 * ONAP : SO
4 * ================================================================================
5 * Copyright 2018 TechMahindra
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.openecomp.mso.bpmn.common.recipe;
21
22 import static org.junit.Assert.*;
23
24 import org.junit.Test;
25
26 public class ResourceRecipeRequestTest {
27
28         ResourceRecipeRequest rr=new ResourceRecipeRequest();
29         BpmnParam bp=new BpmnParam();
30         @Test
31         public void test() {
32                 rr.setResourceInput(bp);
33                 rr.setHost(bp);
34                 rr.setRequestId(bp);
35                 rr.setRequestAction(bp);
36                 rr.setServiceInstanceId(bp);
37                 rr.setServiceType(bp);
38                 rr.setRecipeParams(bp);
39                 assertEquals(rr.getResourceInput(),bp);
40                 assertEquals(rr.getHost(),bp);
41                 assertEquals(rr.getRequestId(),bp);
42                 assertEquals(rr.getRequestAction(),bp);
43                 assertEquals(rr.getServiceInstanceId(),bp);
44                 assertEquals(rr.getServiceType(),bp);
45                 assertEquals(rr.getRecipeParams(),bp);
46         }
47         @Test
48         public void testToString(){
49                 assert(rr.toString()!=null);
50         }
51 }