Added oparent to sdc main
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / api / UploadArtifactInfoTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.common.api;
22
23 import org.junit.Assert;
24 import org.junit.Test;
25
26 public class UploadArtifactInfoTest {
27
28         private UploadArtifactInfo createTestSubject() {
29                 return new UploadArtifactInfo();
30         }
31
32         @Test
33         public void testGetArtifactName() throws Exception {
34                 UploadArtifactInfo testSubject;
35                 String result;
36
37                 // default test
38                 testSubject = createTestSubject();
39                 result = testSubject.getArtifactName();
40         }
41
42         @Test
43         public void testSetArtifactName() throws Exception {
44                 UploadArtifactInfo testSubject;
45                 String artifactName = "";
46
47                 // default test
48                 testSubject = createTestSubject();
49                 testSubject.setArtifactName(artifactName);
50         }
51
52         @Test
53         public void testGetArtifactPath() throws Exception {
54                 UploadArtifactInfo testSubject;
55                 String result;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 result = testSubject.getArtifactPath();
60         }
61
62         @Test
63         public void testSetArtifactPath() throws Exception {
64                 UploadArtifactInfo testSubject;
65                 String artifactPath = "";
66
67                 // default test
68                 testSubject = createTestSubject();
69                 testSubject.setArtifactPath(artifactPath);
70         }
71
72         @Test
73         public void testGetArtifactType() throws Exception {
74                 UploadArtifactInfo testSubject;
75                 ArtifactTypeEnum result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.getArtifactType();
80         }
81
82         @Test
83         public void testSetArtifactType() throws Exception {
84                 UploadArtifactInfo testSubject;
85                 ArtifactTypeEnum artifactType = null;
86
87                 // default test
88                 testSubject = createTestSubject();
89                 testSubject.setArtifactType(artifactType);
90         }
91
92         @Test
93         public void testGetArtifactDescription() throws Exception {
94                 UploadArtifactInfo testSubject;
95                 String result;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 result = testSubject.getArtifactDescription();
100         }
101
102         @Test
103         public void testSetArtifactDescription() throws Exception {
104                 UploadArtifactInfo testSubject;
105                 String artifactDescription = "";
106
107                 // default test
108                 testSubject = createTestSubject();
109                 testSubject.setArtifactDescription(artifactDescription);
110         }
111
112         @Test
113         public void testGetArtifactData() throws Exception {
114                 UploadArtifactInfo testSubject;
115                 String result;
116
117                 // default test
118                 testSubject = createTestSubject();
119                 result = testSubject.getArtifactData();
120         }
121
122         @Test
123         public void testSetArtifactData() throws Exception {
124                 UploadArtifactInfo testSubject;
125                 String artifactData = "";
126
127                 // default test
128                 testSubject = createTestSubject();
129                 testSubject.setArtifactData(artifactData);
130         }
131
132         @Test
133         public void testHashCode() throws Exception {
134                 UploadArtifactInfo testSubject;
135                 int result;
136
137                 // default test
138                 testSubject = createTestSubject();
139                 result = testSubject.hashCode();
140         }
141
142         @Test
143         public void testEquals() throws Exception {
144                 UploadArtifactInfo testSubject;
145                 Object obj = null;
146                 boolean result;
147
148                 // test 1
149                 testSubject = createTestSubject();
150                 obj = null;
151                 result = testSubject.equals(obj);
152                 Assert.assertEquals(false, result);
153         }
154
155         @Test
156         public void testToString() throws Exception {
157                 UploadArtifactInfo testSubject;
158                 String result;
159
160                 // default test
161                 testSubject = createTestSubject();
162                 result = testSubject.toString();
163         }
164 }