summaryrefslogtreecommitdiffstats
path: root/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-20 14:50:31 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-20 15:52:05 +0800
commitdb1c88e473fd07a75c80f52f6b6a8449eb605aca (patch)
treeebf0d2d75387041d9b7b3fef0a89ebcc4454ba83 /zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java
parent7117ab0c12c54e40c3bcfdb999260224cfe01181 (diff)
Add UT cases for vfc-sfc-driver
Change-Id: I9d73c131f441d3f9d83781e1f6a290eaca252e02 Issue-Id: VFC-398 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java')
-rw-r--r--zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java b/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java
new file mode 100644
index 0000000..1883728
--- /dev/null
+++ b/zte/sfc-driver/sfc-driver/src/test/java/org/onap/sfc/TestMsbRegister.java
@@ -0,0 +1,36 @@
+/**
+ * Copyright 2017 ZTE Corporation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.sfc;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.openo.sfc.entity.MsbRegisterEntity;
+import org.openo.sfc.utils.SfcDriverUtil;
+
+public class TestMsbRegister {
+ @Test
+ public void test_registerMsb()
+ {
+ MsbRegisterEntity entity = SfcDriverUtil.getMsbRegisterInfo();
+ assert entity.getUrl().equals("/api/ztesdncdriver/v1");
+ }
+
+ @Before
+ public void setupBefore()
+ {
+
+ }
+}