This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch dev-metadata
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/dev-metadata by this push:
     new 6f70f03  Remove duplicate ut classes
6f70f03 is described below

commit 6f70f03f35643910f1d214a180573bee511e3368
Author: ken.lj <[email protected]>
AuthorDate: Fri Sep 7 16:33:35 2018 +0800

    Remove duplicate ut classes
---
 .../dubbo/registry/ConfigConditionRouterTest.java  | 62 ----------------------
 .../org/apache/dubbo/registry/TagRouterTest.java   | 46 ----------------
 2 files changed, 108 deletions(-)

diff --git 
a/dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/ConfigConditionRouterTest.java
 
b/dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/ConfigConditionRouterTest.java
deleted file mode 100644
index 38aa554..0000000
--- 
a/dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/ConfigConditionRouterTest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * 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.registry;
-
-import org.apache.curator.framework.CuratorFramework;
-import org.apache.curator.framework.CuratorFrameworkFactory;
-import org.apache.curator.retry.ExponentialBackoffRetry;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * FIXME This is not a formal UT
- */
-public class ConfigConditionRouterTest {
-    private static CuratorFramework client;
-
-    @Before
-    public void init() {
-        client = CuratorFrameworkFactory.newClient("127.0.0.1:2181", 60 * 
1000, 60 * 1000,
-                new ExponentialBackoffRetry(1000, 3));
-        client.start();
-    }
-
-    @Test
-    public void normalConditionRuleTest() {
-        String serviceStr = "---\n" +
-                "scope: application\n" +
-                "force: true\n" +
-                "runtime: false\n" +
-                "conditions:\n" +
-                "  - method!=sayHello =>\n" +
-                "  - method=routeMethod1 => 30.5.121.156:20880\n" +
-                "...";
-        try {
-            String servicePath = "/dubbo/config//";
-            if (client.checkExists().forPath(servicePath) == null) {
-                client.create().creatingParentsIfNeeded().forPath(servicePath);
-            }
-            setData(servicePath, serviceStr);
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-    }
-
-    private void setData(String path, String data) throws Exception {
-        client.setData().forPath(path, data.getBytes());
-    }
-}
diff --git 
a/dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/TagRouterTest.java
 
b/dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/TagRouterTest.java
deleted file mode 100644
index 42065bc..0000000
--- 
a/dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/TagRouterTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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.registry;
-
-import org.apache.curator.framework.CuratorFramework;
-import org.apache.curator.framework.CuratorFrameworkFactory;
-import org.apache.curator.retry.ExponentialBackoffRetry;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * FIXME This is not a formal UT
- */
-public class TagRouterTest {
-    private static CuratorFramework client;
-
-    @Before
-    public void init() {
-        client = CuratorFrameworkFactory.newClient("127.0.0.1:2181", 60 * 
1000, 60 * 1000,
-                new ExponentialBackoffRetry(1000, 3));
-        client.start();
-    }
-
-    @Test
-    public void normalTagRuleTest() {
-
-    }
-
-    private void setData(String path, String data) throws Exception {
-        client.setData().forPath(path, data.getBytes());
-    }
-}

Reply via email to