15aefe4192bd87d2f939a5f45899856e97dfeb57
[sdc/sdc-workflow-designer.git] /
1 /**\r
2  * Copyright (c) 2018 ZTE Corporation.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the Apache License, Version 2.0\r
5  * and the Eclipse Public License v1.0 which both accompany this distribution,\r
6  * and are available at http://www.eclipse.org/legal/epl-v10.html\r
7  * and http://www.apache.org/licenses/LICENSE-2.0\r
8  *\r
9  * Contributors:\r
10  *     ZTE - initial API and implementation and/or initial documentation\r
11  */\r
12 package org.onap.sdc.workflowdesigner.externalservice.sdc.entity;\r
13 \r
14 import static org.junit.Assert.*;\r
15 \r
16 import org.junit.After;\r
17 import org.junit.Before;\r
18 import org.junit.Test;\r
19 \r
20 /**\r
21  *\r
22  */\r
23 public class ActivitySpecTest {\r
24 \r
25   /**\r
26    * @throws java.lang.Exception\r
27    */\r
28   @Before\r
29   public void setUp() throws Exception {}\r
30 \r
31   /**\r
32    * @throws java.lang.Exception\r
33    */\r
34   @After\r
35   public void tearDown() throws Exception {}\r
36 \r
37   @Test\r
38   public void test() {\r
39     String id = "";\r
40     String versionId = "";\r
41     String name = "";\r
42     String description = "";\r
43     String type = "";\r
44     String content = "";\r
45     String[] categoryList = new String[]{"aaa"};\r
46     Parameter[] inputs = new Parameter[0];\r
47     Parameter[] outputs = new Parameter[0];\r
48     String status = "status";\r
49     \r
50     ActivitySpec as = new ActivitySpec();\r
51     as.setId(id);\r
52     as.setVersionId(versionId);\r
53     as.setName(name);\r
54     as.setDescription(description);\r
55     as.setType(type);\r
56     as.setContent(content);\r
57     as.setCategoryList(categoryList);\r
58     as.setInputs(inputs);\r
59     as.setOutputs(outputs);\r
60     as.setStatus(status);\r
61     \r
62     assertEquals(id, as.getId());\r
63     assertEquals(versionId, as.getVersionId());\r
64     assertEquals(name, as.getName());\r
65     assertEquals(description, as.getDescription());\r
66     assertEquals(type, as.getType());\r
67     assertEquals(content, as.getContent());\r
68     assertEquals(categoryList, as.getCategoryList());\r
69     assertEquals(inputs, as.getInputs());\r
70     assertEquals(outputs, as.getOutputs());\r
71     assertEquals(status, as.getStatus());\r
72   }\r
73 \r
74 }\r