2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.model;
23 import org.junit.Test;
25 import java.util.List;
28 public class ProductTest {
30 private Product createTestSubject() {
35 public void testCtor() throws Exception {
36 new Product(new ProductMetadataDefinition());
40 public void testGetFullName() throws Exception {
45 testSubject = createTestSubject();
46 result = testSubject.getFullName();
51 public void testSetFullName() throws Exception {
56 testSubject = createTestSubject();
57 testSubject.setFullName(fullName);
62 public void testGetInvariantUUID() throws Exception {
67 testSubject = createTestSubject();
68 result = testSubject.getInvariantUUID();
73 public void testSetInvariantUUID() throws Exception {
75 String invariantUUID = "";
78 testSubject = createTestSubject();
79 testSubject.setInvariantUUID(invariantUUID);
84 public void testGetContacts() throws Exception {
89 testSubject = createTestSubject();
90 result = testSubject.getContacts();
95 public void testSetContacts() throws Exception {
97 List<String> contacts = null;
100 testSubject = createTestSubject();
101 testSubject.setContacts(contacts);
106 public void testAddContact() throws Exception {
111 testSubject = createTestSubject();
112 testSubject.addContact(contact);
117 public void testGetIsActive() throws Exception {
122 testSubject = createTestSubject();
123 result = testSubject.getIsActive();
128 public void testSetIsActive() throws Exception {
130 Boolean isActive = null;
133 testSubject = createTestSubject();
134 testSubject.setIsActive(isActive);