2 * Copyright (C) 2019 Verizon. All Rights Reserved Licensed under the Apache License, Version 2.0 (the "License"); you
3 * may not use this file except in compliance with the License. You may obtain a copy of the License at
5 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
8 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations under the License.
12 package org.onap.so.adapters.vfc.model;
14 import org.junit.Test;
15 import java.util.Collection;
16 import java.util.Iterator;
17 import java.util.List;
18 import java.util.ListIterator;
19 import static org.junit.Assert.*;
21 public class AffinityOrAntiAffinityRuleTest {
22 AffinityOrAntiAffinityRule affinityOrAntiAffinityRule = new AffinityOrAntiAffinityRule();
25 public void getVnfdId() {
26 affinityOrAntiAffinityRule.getVnfdId();
30 public void setVnfdId() {
31 affinityOrAntiAffinityRule.setVnfdId("c9f0a95e-dea0-4698-96e5-5a79bc5a233d");
35 public void getVnfProfileId() {
36 affinityOrAntiAffinityRule.getVnfProfileId();
40 public void setVnfProfileId() {
41 affinityOrAntiAffinityRule.setVnfProfileId(new List<String>() {
48 public boolean isEmpty() {
53 public boolean contains(Object o) {
58 public Iterator<String> iterator() {
63 public Object[] toArray() {
68 public <T> T[] toArray(T[] a) {
73 public boolean add(String s) {
78 public boolean remove(Object o) {
83 public boolean containsAll(Collection<?> c) {
88 public boolean addAll(Collection<? extends String> c) {
93 public boolean addAll(int index, Collection<? extends String> c) {
98 public boolean removeAll(Collection<?> c) {
103 public boolean retainAll(Collection<?> c) {
108 public void clear() {
113 public String get(int index) {
118 public String set(int index, String element) {
123 public void add(int index, String element) {
128 public String remove(int index) {
133 public int indexOf(Object o) {
138 public int lastIndexOf(Object o) {
143 public ListIterator<String> listIterator() {
148 public ListIterator<String> listIterator(int index) {
153 public List<String> subList(int fromIndex, int toIndex) {
160 public void getVnfInstanceId() {
161 affinityOrAntiAffinityRule.getVnfInstanceId();
165 public void setVnfInstanceId() {
166 affinityOrAntiAffinityRule.setVnfInstanceId(new List<String>() {
173 public boolean isEmpty() {
178 public boolean contains(Object o) {
183 public Iterator<String> iterator() {
188 public Object[] toArray() {
189 return new Object[0];
193 public <T> T[] toArray(T[] a) {
198 public boolean add(String s) {
203 public boolean remove(Object o) {
208 public boolean containsAll(Collection<?> c) {
213 public boolean addAll(Collection<? extends String> c) {
218 public boolean addAll(int index, Collection<? extends String> c) {
223 public boolean removeAll(Collection<?> c) {
228 public boolean retainAll(Collection<?> c) {
233 public void clear() {
238 public String get(int index) {
243 public String set(int index, String element) {
248 public void add(int index, String element) {
253 public String remove(int index) {
258 public int indexOf(Object o) {
263 public int lastIndexOf(Object o) {
268 public ListIterator<String> listIterator() {
273 public ListIterator<String> listIterator(int index) {
278 public List<String> subList(int fromIndex, int toIndex) {