diff options
author | YuanHu <yuan.hu1@zte.com.cn> | 2018-04-12 14:49:18 +0800 |
---|---|---|
committer | YuanHu <yuan.hu1@zte.com.cn> | 2018-04-12 15:00:49 +0800 |
commit | 59547f49e965167c8fd1a4bf78ca6d300a4c37ad (patch) | |
tree | 6efd534b3203994e452783187b010fb6a3c6af4c /sdc-workflow-designer-server/src/test/java | |
parent | d447c76fe62dbbb39e6a2d6f2a2bcb53fc53d01e (diff) |
Add AdapterType.
DEFAULT: retrive data from local.
SDC: retrive data from sdc.
Issue-ID: SDC-1212
Change-Id: I53d53f062cbe705738f2f4797621aee465e60fa4
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server/src/test/java')
-rw-r--r-- | sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java b/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java new file mode 100644 index 00000000..fa9de6ea --- /dev/null +++ b/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/config/AdapterTypeTest.java @@ -0,0 +1,45 @@ +/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the Apache License, Version 2.0
+ * and the Eclipse Public License v1.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.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class AdapterTypeTest {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @Before
+ public void setUp() throws Exception {}
+
+ /**
+ * @throws java.lang.Exception
+ */
+ @After
+ public void tearDown() throws Exception {}
+
+ @Test
+ public void test() {
+ AdapterType at = AdapterType.valueOf("SDC");
+ assertEquals(AdapterType.SDC, at);
+ AdapterType at1 = AdapterType.valueOf("DEFAULT");
+ assertEquals(AdapterType.DEFAULT, at1);
+ }
+
+}
|