You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by wa...@apache.org on 2018/10/26 11:02:13 UTC
[incubator-dubbo-ops] branch develop updated: add test case to test
codecov
This is an automated email from the ASF dual-hosted git repository.
wangxin pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/develop by this push:
new c5dfdd8 add test case to test codecov
c5dfdd8 is described below
commit c5dfdd86d39fef4fb3f2a78c412db23cddf33920
Author: wangxin03 <wa...@weidian.com>
AuthorDate: Fri Oct 26 19:02:02 2018 +0800
add test case to test codecov
---
.../dubbo/admin/governance/util/UrlUtilsTest.java | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/dubbo-admin-backend/src/test/java/org/apache/dubbo/admin/governance/util/UrlUtilsTest.java b/dubbo-admin-backend/src/test/java/org/apache/dubbo/admin/governance/util/UrlUtilsTest.java
new file mode 100644
index 0000000..5e513f6
--- /dev/null
+++ b/dubbo-admin-backend/src/test/java/org/apache/dubbo/admin/governance/util/UrlUtilsTest.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.dubbo.admin.governance.util;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class UrlUtilsTest {
+ @Test
+ public void testArrayToString() {
+ String[] strArr = {"1", "2", "3"};
+ String result = UrlUtils.arrayToString(strArr);
+ Assert.assertEquals(result, "1,2,3");
+ }
+}