Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCoreBPMN / src / test / java / org / onap / so / bpmn / core / domain / HomingSolutionTest.java
1 /*
2  * ============LICENSE_START======================================================= ONAP : SO
3  * ================================================================================ Copyright (C) 2018 TechMahindra
4  * ================================================================================ Licensed under the Apache License,
5  * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy
6  * of the License at
7  * 
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * 
10  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  * ============LICENSE_END=========================================================
14  */
15 package org.onap.so.bpmn.core.domain;
16
17 import static org.junit.Assert.*;
18 import org.junit.Test;
19
20 public class HomingSolutionTest {
21
22     private HomingSolution homingsolution = new HomingSolution();
23     InventoryType inventory = InventoryType.cloud;
24     VnfResource vnfresource = new VnfResource();
25     License license = new License();
26
27     @Test
28     public void testHomingSolution() {
29         homingsolution.setInventoryType(inventory);
30         homingsolution.setRehome(true);
31         homingsolution.setServiceInstanceId("serviceInstanceId");
32         homingsolution.setCloudOwner("cloudOwner");
33         homingsolution.setCloudRegionId("cloudRegionId");
34         homingsolution.setAicClli("aicClli");
35         homingsolution.setAicVersion("aicVersion");
36         homingsolution.setTenant("tenant");
37         homingsolution.setVnf(vnfresource);
38         homingsolution.setLicense(license);
39         assertEquals(homingsolution.getInventoryType(), inventory);
40         assertEquals(homingsolution.isRehome(), true);
41         assertEquals(homingsolution.getServiceInstanceId(), "serviceInstanceId");
42         assertEquals(homingsolution.getCloudOwner(), "cloudOwner");
43         assertEquals(homingsolution.getCloudRegionId(), "cloudRegionId");
44         assertEquals(homingsolution.getAicClli(), "aicClli");
45         assertEquals(homingsolution.getAicVersion(), "aicVersion");
46         assertEquals(homingsolution.getTenant(), "tenant");
47         assertEquals(homingsolution.getVnf(), vnfresource);
48         assertEquals(homingsolution.getLicense(), license);
49
50     }
51
52 }