Specify a model while creating a VSP
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-software-products-rest / vendor-software-products-rest-types / src / test / java / org / openecomp / sdcrests / vendorsoftwareproducts / types / VspDescriptionDtoTest.java
1 /*
2  * -
3  *  ============LICENSE_START=======================================================
4  *  Copyright (C) 2019 Nokia. All rights reserved.
5  *  Modifications Copyright (C) 2021 Nordix Foundation.
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  *
19  *  SPDX-License-Identifier: Apache-2.0
20  *  ============LICENSE_END=========================================================
21  */
22 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
23
24 import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanEqualsExcluding;
25 import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanHashCodeExcluding;
26 import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanToStringExcluding;
27 import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding;
28 import static org.hamcrest.MatcherAssert.assertThat;
29
30 import org.junit.jupiter.api.Test;
31
32 class VspDescriptionDtoTest {
33
34     @Test
35     void shouldHaveValidGettersAndSetters() {
36         assertThat(VspDescriptionDto.class, hasValidGettersAndSettersExcluding("selectedModelList"));
37     }
38
39     @Test
40     void shouldHaveValidToString() {
41         assertThat(VspDescriptionDto.class, hasValidBeanToStringExcluding("selectedModelList"));
42     }
43
44     @Test
45     void shouldHaveEquals() {
46         assertThat(VspDescriptionDto.class, hasValidBeanEqualsExcluding("selectedModelList"));
47     }
48
49     @Test
50     void shouldHaveHashCode() {
51         assertThat(VspDescriptionDto.class, hasValidBeanHashCodeExcluding("selectedModelList"));
52     }
53 }