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.tosca.model;
23 import org.junit.Test;
26 public class ToscaPropertyTest {
28 private ToscaProperty createTestSubject() {
29 return new ToscaProperty();
34 public void testGetEntry_schema() throws Exception {
35 ToscaProperty testSubject;
39 testSubject = createTestSubject();
40 result = testSubject.getEntry_schema();
45 public void testSetEntry_schema() throws Exception {
46 ToscaProperty testSubject;
47 EntrySchema entry_schema = null;
50 testSubject = createTestSubject();
51 testSubject.setEntry_schema(entry_schema);
56 public void testGetType() throws Exception {
57 ToscaProperty testSubject;
61 testSubject = createTestSubject();
62 result = testSubject.getType();
67 public void testSetType() throws Exception {
68 ToscaProperty testSubject;
72 testSubject = createTestSubject();
73 testSubject.setType(type);
78 public void testGetDefaultp() throws Exception {
79 ToscaProperty testSubject;
83 testSubject = createTestSubject();
84 result = testSubject.getDefaultp();
89 public void testSetDefaultp() throws Exception {
90 ToscaProperty testSubject;
91 Object defaultp = null;
94 testSubject = createTestSubject();
95 testSubject.setDefaultp(defaultp);
100 public void testGetDescription() throws Exception {
101 ToscaProperty testSubject;
105 testSubject = createTestSubject();
106 result = testSubject.getDescription();
111 public void testSetDescription() throws Exception {
112 ToscaProperty testSubject;
113 String description = "";
116 testSubject = createTestSubject();
117 testSubject.setDescription(description);
122 public void testGetRequired() throws Exception {
123 ToscaProperty testSubject;
127 testSubject = createTestSubject();
128 result = testSubject.getRequired();
133 public void testSetRequired() throws Exception {
134 ToscaProperty testSubject;
135 Boolean required = null;
138 testSubject = createTestSubject();
139 testSubject.setRequired(required);
144 public void testGetStatus() throws Exception {
145 ToscaProperty testSubject;
149 testSubject = createTestSubject();
150 result = testSubject.getStatus();
155 public void testSetStatus() throws Exception {
156 ToscaProperty testSubject;
160 testSubject = createTestSubject();
161 testSubject.setStatus(status);