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.common.api;
23 import org.junit.Assert;
24 import org.junit.Test;
26 public class UploadArtifactInfoTest {
28 private UploadArtifactInfo createTestSubject() {
29 return new UploadArtifactInfo();
33 public void testGetArtifactName() throws Exception {
34 UploadArtifactInfo testSubject;
38 testSubject = createTestSubject();
39 result = testSubject.getArtifactName();
43 public void testSetArtifactName() throws Exception {
44 UploadArtifactInfo testSubject;
45 String artifactName = "";
48 testSubject = createTestSubject();
49 testSubject.setArtifactName(artifactName);
53 public void testGetArtifactPath() throws Exception {
54 UploadArtifactInfo testSubject;
58 testSubject = createTestSubject();
59 result = testSubject.getArtifactPath();
63 public void testSetArtifactPath() throws Exception {
64 UploadArtifactInfo testSubject;
65 String artifactPath = "";
68 testSubject = createTestSubject();
69 testSubject.setArtifactPath(artifactPath);
73 public void testGetArtifactType() throws Exception {
74 UploadArtifactInfo testSubject;
75 ArtifactTypeEnum result;
78 testSubject = createTestSubject();
79 result = testSubject.getArtifactType();
83 public void testSetArtifactType() throws Exception {
84 UploadArtifactInfo testSubject;
85 ArtifactTypeEnum artifactType = null;
88 testSubject = createTestSubject();
89 testSubject.setArtifactType(artifactType);
93 public void testGetArtifactDescription() throws Exception {
94 UploadArtifactInfo testSubject;
98 testSubject = createTestSubject();
99 result = testSubject.getArtifactDescription();
103 public void testSetArtifactDescription() throws Exception {
104 UploadArtifactInfo testSubject;
105 String artifactDescription = "";
108 testSubject = createTestSubject();
109 testSubject.setArtifactDescription(artifactDescription);
113 public void testGetArtifactData() throws Exception {
114 UploadArtifactInfo testSubject;
118 testSubject = createTestSubject();
119 result = testSubject.getArtifactData();
123 public void testSetArtifactData() throws Exception {
124 UploadArtifactInfo testSubject;
125 String artifactData = "";
128 testSubject = createTestSubject();
129 testSubject.setArtifactData(artifactData);
133 public void testHashCode() throws Exception {
134 UploadArtifactInfo testSubject;
138 testSubject = createTestSubject();
139 result = testSubject.hashCode();
143 public void testEquals() throws Exception {
144 UploadArtifactInfo testSubject;
149 testSubject = createTestSubject();
151 result = testSubject.equals(obj);
152 Assert.assertEquals(false, result);
156 public void testToString() throws Exception {
157 UploadArtifactInfo testSubject;
161 testSubject = createTestSubject();
162 result = testSubject.toString();