1 package org.onap.vid.asdc.beans.tosca;
5 public class PropertyTest {
7 private Property createTestSubject() {
12 public void testGetType() throws Exception {
17 testSubject = createTestSubject();
18 result = testSubject.getType();
22 public void testGetDescription() throws Exception {
27 testSubject = createTestSubject();
28 result = testSubject.getDescription();
32 public void testGetEntry_schema() throws Exception {
37 testSubject = createTestSubject();
38 result = testSubject.getEntry_schema();
43 public void testSetType() throws Exception {
48 testSubject = createTestSubject();
49 testSubject.setType(type);
53 public void testSetDescription() throws Exception {
55 String description = "";
58 testSubject = createTestSubject();
59 testSubject.setDescription(description);
63 public void testSetEntry_schema() throws Exception {
65 Schema entry_schema = null;
68 testSubject = createTestSubject();
69 testSubject.setEntry_schema(entry_schema);
74 public void testGetDefault() throws Exception {
79 testSubject = createTestSubject();
80 result = testSubject.getDefault();
84 public void testIsRequired() throws Exception {
89 testSubject = createTestSubject();
90 result = testSubject.isRequired();
94 public void testSetDefault() throws Exception {
99 testSubject = createTestSubject();
100 testSubject.setDefault(_default);
104 public void testSetRequired() throws Exception {
105 Property testSubject;
106 boolean required = false;
109 testSubject = createTestSubject();
110 testSubject.setRequired(required);