summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-server/src/test
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2017-09-27 09:45:44 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2017-09-27 09:51:28 +0800
commit49d669b567cfb3024c9a40bb962809f73455ff11 (patch)
tree88977afe2d598a2b86656693ce7ca6f23a6b5c07 /sdc-workflow-designer-server/src/test
parent3694205db52ef2b3db5a869ae9e6c3568e616bad (diff)
Add unit test for config
Issue-ID: SDC-403 Change-Id: I5acdc670e274631225608899f24349bd037e5067 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server/src/test')
-rw-r--r--sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java b/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java
new file mode 100644
index 00000000..22c9a52e
--- /dev/null
+++ b/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/ConfigTest.java
@@ -0,0 +1,26 @@
+/**
+ * Copyright (c) 2017 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+package org.onap.sdc.workflowdesigner.config;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.velocity.exception.ParseErrorException;
+import org.apache.velocity.exception.ResourceNotFoundException;
+import org.junit.Test;
+
+public class ConfigTest {
+ @Test
+ public void testLoad() throws ResourceNotFoundException, ParseErrorException, Exception {
+ assertEquals(Config.PROPERTIES.get(Config.HANDLER_ClASS),
+ "org.onap.workflow.activitiext.restservicetask.HttpUtil");
+ }
+}