12e18531dfa028d71db18cd4a2c459e886a8486c
[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;\r
13 \r
14 import static org.junit.Assert.*;\r
15 \r
16 import javax.validation.constraints.NotNull;\r
17 \r
18 import org.hibernate.validator.constraints.NotEmpty;\r
19 import org.junit.After;\r
20 import org.junit.Before;\r
21 import org.junit.Test;\r
22 \r
23 /**\r
24  *\r
25  */\r
26 public class WorkflowDesignerConfigurationTest {\r
27 \r
28   /**\r
29    * @throws java.lang.Exception\r
30    */\r
31   @Before\r
32   public void setUp() throws Exception {}\r
33 \r
34   /**\r
35    * @throws java.lang.Exception\r
36    */\r
37   @After\r
38   public void tearDown() throws Exception {}\r
39 \r
40   @Test\r
41   public void test() {\r
42     String template = "template";\r
43     String defaultName = "Workflow Designer";\r
44     SDCServiceProxyInfo sdcServiceProxy = new SDCServiceProxyInfo();\r
45     \r
46     \r
47     WorkflowDesignerConfiguration wdc = new WorkflowDesignerConfiguration();\r
48     wdc.setDefaultName(defaultName);\r
49     wdc.setSdcServiceProxy(sdcServiceProxy);\r
50     wdc.setTemplate(template);\r
51     \r
52     assertEquals(defaultName, wdc.getDefaultName());\r
53     assertEquals(sdcServiceProxy, wdc.getSdcServiceProxy());\r
54     assertEquals(template, wdc.getTemplate());\r
55   }\r
56 \r
57 }\r