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();
42 public void testGet_default() throws Exception {
47 testSubject = createTestSubject();
48 result = testSubject.get_default();
52 public void testSetType() throws Exception {
57 testSubject = createTestSubject();
58 testSubject.setType(type);
62 public void testSetDescription() throws Exception {
64 String description = "";
67 testSubject = createTestSubject();
68 testSubject.setDescription(description);
72 public void testSetEntry_schema() throws Exception {
74 Schema entry_schema = null;
77 testSubject = createTestSubject();
78 testSubject.setEntry_schema(entry_schema);
82 public void testSet_default() throws Exception {
87 testSubject = createTestSubject();
88 testSubject.set_default(_default);
92 public void testGetDefault() throws Exception {
97 testSubject = createTestSubject();
98 result = testSubject.getDefault();
102 public void testIsRequired() throws Exception {
103 Property testSubject;
107 testSubject = createTestSubject();
108 result = testSubject.isRequired();
112 public void testSetDefault() throws Exception {
113 Property testSubject;
114 String _default = "";
117 testSubject = createTestSubject();
118 testSubject.setDefault(_default);
122 public void testSetRequired() throws Exception {
123 Property testSubject;
124 boolean required = false;
127 testSubject = createTestSubject();
128 testSubject.setRequired(required);