提交 618ef371 编写于 作者: K ken.lj

I18N effort for dubbo-admin, xml and UT, #1124

上级 dca5adbe
<!--
- Copyright 1999-2011 Alibaba Group.
-
- 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
-
- 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.
......
......@@ -10,10 +10,10 @@
<services:pipeline id="exceptionPipeline"
xmlns="http://www.alibaba.com/schema/services/pipeline/valves">
<!-- 初始化turbine rundata,并在pipelineContext中设置可能会用到的对象(如rundata、utils),以便valve取得。 -->
<!-- Initialize the turbine rundata and set up objects that may be used in pipelineContext (such as rundata, utils) so that valve can be obtained. -->
<prepareForTurbine/>
<!-- 根据异常,选择适当的错误页面及statusCode。 -->
<!-- According to the exception, select the appropriate error page and statusCode. -->
<handleException defaultPage="error_other.vm">
<on-exception
type="com.alibaba.citrus.service.template.TemplateNotFoundException"
......
......@@ -12,28 +12,26 @@
<services:pipeline
xmlns="http://www.alibaba.com/schema/services/pipeline/valves">
<!-- 初始化turbine rundata,并在pipelineContext中设置可能会用到的对象(如rundata、utils),以便valve取得。 -->
<!-- Initialize the turbine rundata and set up objects that may be used in pipelineContext (such as rundata, utils) so that valve can be obtained. -->
<prepareForTurbine/>
<!-- 设置日志系统的上下文,支持把当前请求的详情打印在日志中。 -->
<!-- Set context of log system, so that we can record logs of current request. -->
<setLoggingContext/>
<!-- 分析URL,取得target。 -->
<!-- URL is analyzed and target is obtained. -->
<analyzeURL/>
<!-- 检查csrf token,防止csrf攻击和重复提交。假如request和session中的token不匹配,则出错,或显示expired页面。 -->
<!-- Check csrf token to avoid csrf attack and duplicate submit. If the token in request can not be matched with the token in session, then an error page or expired page is shown. -->
<checkCsrfToken/>
<!-- 拦击器作用 -->
<valve
class="com.alibaba.dubbo.governance.web.common.interceptor.LocaleValve"/>
<!-- interceptor for I18N -->
<valve class="com.alibaba.dubbo.governance.web.common.interceptor.LocaleValve"/>
<choose>
<when>
<pl-conditions:path-condition name="^/status$|/favicon.ico"/>
</when>
<otherwise>
<valve
class="com.alibaba.dubbo.governance.web.common.interceptor.AuthorizationValve"/>
<valve class="com.alibaba.dubbo.governance.web.common.interceptor.AuthorizationValve"/>
</otherwise>
</choose>
<loop>
......@@ -43,13 +41,13 @@
<valve class="com.alibaba.citrus.extension.rpc.integration.RPCServiceHandlerValve"/>
</when>
<when>
<!-- 执行不带模板的screen,默认无layout。 -->
<!-- The screen without the template is executed, and the default is not layout. -->
<pl-conditions:path-condition
name="/sysinfo/dump.htm|^/\w+$|^/status/.+$"/>
<performTemplateScreen/>
</when>
<when>
<!-- 执行带模板的screen,默认有layout。 -->
<!-- The screen with the template is executed, and the default is layout. -->
<pl-conditions:target-extension-condition
extension="null, vm, jsp"/>
<performAction/>
......@@ -61,7 +59,7 @@
</otherwise>
</choose>
<!-- 假如rundata.setRedirectTarget()被设置,则循环,否则退出循环。 -->
<!-- if rundata.setRedirectTarget() was set, then continue loop, if not, break. -->
<breakUnlessTargetRedirected/>
</loop>
......
......@@ -12,41 +12,39 @@
<services:pipeline
xmlns="http://www.alibaba.com/schema/services/pipeline/valves">
<!-- 初始化turbine rundata,并在pipelineContext中设置可能会用到的对象(如rundata、utils),以便valve取得。 -->
<!-- Initialize the turbine rundata and set up objects that may be used in pipelineContext (such as rundata, utils) so that valve can be obtained. -->
<prepareForTurbine/>
<!-- 设置日志系统的上下文,支持把当前请求的详情打印在日志中。 -->
<!-- Set context of log system, so that we can record logs of current request. -->
<setLoggingContext/>
<!-- 分析URL,取得target。 -->
<!-- URL is analyzed and target is obtained. -->
<analyzeURL/>
<!-- 检查csrf token,防止csrf攻击和重复提交。假如request和session中的token不匹配,则出错,或显示expired页面。 -->
<!-- Check csrf token to avoid csrf attack and duplicate submit. If the token in request can not be matched with the token in session, then an error page or expired page is shown. -->
<checkCsrfToken/>
<!-- 拦击器作用 -->
<valve
class="com.alibaba.dubbo.governance.web.common.interceptor.LocaleValve"/>
<!-- interceptor for I18N -->
<valve class="com.alibaba.dubbo.governance.web.common.interceptor.LocaleValve"/>
<choose>
<when>
<pl-conditions:path-condition name="^/servicestatus/.+|^/status$|/favicon.ico|/sysinfo/dump.htm"/>
</when>
<otherwise>
<valve
class="com.alibaba.dubbo.governance.web.common.interceptor.AuthorizationValve"/>
<valve class="com.alibaba.dubbo.governance.web.common.interceptor.AuthorizationValve"/>
</otherwise>
</choose>
<loop>
<choose>
<when>
<!-- 执行不带模板的screen,默认无layout。 -->
<!-- The screen without the template is executed, and the default is not layout. -->
<pl-conditions:path-condition
name="/sysinfo/dump.htm|^/\w+$|^/status/.+$"/>
<performTemplateScreen/>
</when>
<when>
<!-- 执行带模板的screen,默认有layout。 -->
<!-- The screen with the template is executed, and the default is layout. -->
<pl-conditions:target-extension-condition
extension="null, vm, jsp, html"/>
<performAction/>
......@@ -58,7 +56,7 @@
</otherwise>
</choose>
<!-- 假如rundata.setRedirectTarget()被设置,则循环,否则退出循环。 -->
<!-- If rundata.setRedirectTarget () is set, then loop, or else out of the loop. -->
<breakUnlessTargetRedirected/>
</loop>
......
......@@ -11,14 +11,14 @@
<services:resource-loading xmlns="http://www.alibaba.com/schema/services">
<resource-alias pattern="/" name="/webroot"/>
<!-- 子模块模板目录:/*/templates -->
<!-- 全局模板目录: /*/templates/global -->
<!-- Submodule template directory: /*/templates -->
<!-- Global template directory: /*/templates/global -->
<resource-alias pattern="/*/templates/global" name="/webroot/common/templates"/>
<!-- 配置文件根目录:/conf -->
<!-- Configuration file root: /conf -->
<resource-alias pattern="/conf" name="/webroot/WEB-INF"/>
<!-- 内部资源 -->
<!-- Internal resources -->
<resource pattern="/webroot" internal="true">
<res-loaders:webapp-loader/>
</resource>
......
......@@ -12,10 +12,10 @@
http://www.alibaba.com/schema/services/template/engines/velocity/plugins http://localhost:8080/schema/services-template-engines-velocity-plugins.xsd
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 此文件被 webx.xml 和 webx-*.xml 同时引用。 -->
<!-- 注意:此文件需要property-placeholder变量:${component}。 -->
<!-- This file can be used by webx.xml and webx-*.xml. -->
<!-- NOTE: This file requires property-placeholder variables: ${component}。 -->
<!-- Template渲染服务。 -->
<!-- Template render service. -->
<services:template
xmlns="http://www.alibaba.com/schema/services/template/engines"
searchExtensions="true">
......@@ -41,13 +41,13 @@
/> <jsp-engine path="/templates/${component}" /> -->
</services:template>
<!-- 名称查找规则。 -->
<!-- Name lookup rules. -->
<services:mapping-rules
xmlns="http://www.alibaba.com/schema/services/mapping-rules">
<!-- External target name => Internal target name -->
<extension-rule id="extension.input">
<!-- 默认后缀 -->
<!-- default suffix -->
<mapping extension="" to=""/>
<!-- JSP -->
......@@ -63,7 +63,7 @@
<!-- Internal target name => External target name -->
<extension-rule id="extension.output">
<!-- 默认后缀 -->
<!-- default suffix -->
<mapping extension="" to="htm"/>
<!-- JSP -->
......@@ -106,7 +106,7 @@
</services:mapping-rules>
<!-- 支持注入参数。 -->
<!-- Support parameter injection. -->
<services:data-resolver
xmlns="http://www.alibaba.com/schema/services/data-resolver/factories">
<turbine-rundata-resolver/>
......
......@@ -8,13 +8,13 @@
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd
">
<!-- 此文件仅被 webx-*.xml 引用。 -->
<!-- 注意:此文件需要property-placeholder变量:${component}。 -->
<!-- This file should only be referenced by webx-*.xml. -->
<!-- NOTE: This file requires property-placeholder variables: ${component}。 -->
<!-- 综合设置。 -->
<!-- other configuration -->
<services:webx-configuration/>
<!-- 将beans暴露给模板。 -->
<!-- Expose the beans to the template. -->
<services:pull xmlns="http://www.alibaba.com/schema/services/pull/factories">
<utils/>
<rundata-tool/>
......
......@@ -9,7 +9,7 @@
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<services:form postOnlyByDefault="true">
<!-- 定义provider -->
<!-- provider definition -->
<services:group name="provider">
<services:field name="serviceName"></services:field>
<services:field name="serviceParameters"></services:field>
......
......@@ -86,18 +86,24 @@
<TD>
<P>
<STRONG>
<FONT color=#ba1c1c>HTTP404错误</FONT></STRONG>:
<FONT color=#ba1c1c>HTTP40 ERROR</FONT></STRONG>:
<BR/>
<BR/>
没有找到您要访问的页面,请检查您是否输入正确URL。 <BR/>
Failed to find the page you want to access, please make sure you
are accessing the correct URL. <BR/>
<BR/>
请尝试以下操作:</P>
<P>·Dubbo2.1已经升级,如果您收藏了之前dubbo的url链接请点击回到首页跳转<BR/><BR/>
·单击<A href="/">
<font color="#BA1C1C">回到首页</font></A>链接,尝试其他链接。<BR/>
Please try the following: </P>
<P>·Dubbo2.1 has been upgraded, and if you have add the Dubbo URL
link to your favourite collections, please click back to the
home page to jump<BR/><BR/>
·click <A href="/">
<font color="#BA1C1C">Home</font></A> link, and try other
links.<BR/>
</P>
<BR/>
<P align="right">如果您在浏览本站时,多次出现此错误,请与Dubbo团队联系&nbsp;</P>
<P align="right">If you have made this mistake many times when you
are browsing this station, please contact the Dubbo
team&nbsp;</P>
</TD>
</TR>
</TABLE>
......
......@@ -82,7 +82,7 @@
<STRONG><FONT
color=#ba1c1c>$error.exception.message</FONT></STRONG>:
<BR/>
系统内部错误,请联系管理员!
Internal error, please contact the administrator!
<BR/> <!-- $tool.toStackTraceString($error.exception) -->
</P>
</TD>
......
......@@ -13,34 +13,6 @@
<param-value>UTF-8</param-value>
</context-param>
<!-- BUC -->
<!-- <filter>
<filter-name>ssoFilter</filter-name>
<filter-class>com.alibaba.buc.sso.client.filter.SSOFilter</filter-class>
<init-param>
<param-name>APP_NAME</param-name>
<param-value>dubbo</param-value> ps:修改app_name成在应用接入方的应用名,此应用名会在buc系统上注册
</init-param>
<init-param>
<param-name>SSO_CALLBACK_CLASS</param-name>
<param-value>com.alibaba.dubbo.governance.web.common.interceptor.BucCookieHandler</param-value>ps:用户可扩展的ssoCallback 一般都需要用户扩展
</init-param>
<init-param>
<param-name>SSO_SERVER_URL</param-name>
<param-value>https://login.alibaba-inc.com</param-value> 线上应用请使用: https://login.alibaba-inc.com
</init-param>
<init-param>
<param-name>EXCLUSIONS</param-name> ps:直接绕过sso filter的requestUri,uri间用半角逗号隔开
<param-value>/sendBucSSOToken,/bucSSOLogout,/login.htm,/logout.htm,/images*,/css*,/js*,/reg,/lookup,/unreg,/unregister,/unregisterall,/status,/status/*,/register,/disable,*.ico,/rpc/*,/error*,/sysinfo/dump/*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ssoFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Logger -->
<listener>
<listener-class>com.alibaba.citrus.logconfig.LogConfiguratorListener</listener-class>
......
......@@ -10,7 +10,7 @@
http://www.alibaba.com/schema/services/module-loader/factories http://localhost:8080/schema/services-module-loader-factories.xsd
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 支持${xxx}替换。 -->
<!-- support placeholder like ${xxx} -->
<services:property-placeholder>
<services:property key="component">governance</services:property>
</services:property-placeholder>
......@@ -21,14 +21,14 @@
<page-tool/>
</services:pull>
<!-- 共享配置。 -->
<!-- shared configuration -->
<beans:import resource="common/webx-component-and-root.xml"/>
<beans:import resource="common/webx-component.xml"/>
<!-- 执行管道。 -->
<!-- execute pipeline -->
<beans:import resource="common/pipeline.xml"/>
<!-- 装载模块。 -->
<!-- load module -->
<services:module-loader>
<ml-factories:class-modules>
<ml-factories:search-packages type="$1" packages="com.alibaba.dubbo.governance.web.governance.module.*"/>
......
......@@ -9,19 +9,19 @@
http://www.alibaba.com/schema/services/module-loader/factories http://localhost:8080/schema/services-module-loader-factories.xsd
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 支持${xxx}替换。 -->
<!-- support placeholder like ${xxx} -->
<services:property-placeholder>
<services:property key="component">home</services:property>
</services:property-placeholder>
<!-- 共享配置。 -->
<!-- shared configuration -->
<beans:import resource="common/webx-component-and-root.xml"/>
<beans:import resource="common/webx-component.xml"/>
<!-- 执行管道。 -->
<!-- execute pipeline -->
<beans:import resource="common/pipeline.xml"/>
<!-- 装载模块。 -->
<!-- load module -->
<services:module-loader>
<ml-factories:class-modules>
<ml-factories:search-packages type="$1" packages="com.alibaba.dubbo.governance.web.home.module.*"/>
......
......@@ -9,19 +9,19 @@
http://www.alibaba.com/schema/services/module-loader/factories http://localhost:8080/schema/services-module-loader-factories.xsd
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 支持${xxx}替换。 -->
<!-- support placeholder like ${xxx} -->
<services:property-placeholder>
<services:property key="component">personal</services:property>
</services:property-placeholder>
<!-- 共享配置。 -->
<!-- shared configuration -->
<beans:import resource="common/webx-component-and-root.xml"/>
<beans:import resource="common/webx-component.xml"/>
<!-- 执行管道。 -->
<!-- execute pipeline -->
<beans:import resource="common/pipeline.xml"/>
<!-- 装载模块。 -->
<!-- load module -->
<services:module-loader>
<ml-factories:class-modules>
<ml-factories:search-packages type="$1" packages="com.alibaba.dubbo.governance.web.personal.module.*"/>
......
......@@ -9,19 +9,19 @@
http://www.alibaba.com/schema/services/module-loader/factories http://localhost:8080/schema/services-module-loader-factories.xsd
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 支持${xxx}替换。 -->
<!-- support placeholder like ${xxx} -->
<services:property-placeholder>
<services:property key="component">sysinfo</services:property>
</services:property-placeholder>
<!-- 共享配置。 -->
<!-- shared configuration -->
<beans:import resource="common/webx-component-and-root.xml"/>
<beans:import resource="common/webx-component.xml"/>
<!-- 执行管道。 -->
<!-- execute pipeline -->
<beans:import resource="common/pipeline.xml"/>
<!-- 装载模块。 -->
<!-- load module -->
<services:module-loader>
<ml-factories:class-modules>
<ml-factories:search-packages type="$1" packages="com.alibaba.dubbo.governance.web.sysinfo.module.*"/>
......
......@@ -9,19 +9,19 @@
http://www.alibaba.com/schema/services/module-loader/factories http://localhost:8080/schema/services-module-loader-factories.xsd
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 支持${xxx}替换。 -->
<!-- support placeholder like ${xxx} -->
<services:property-placeholder>
<services:property key="component">sysmanage</services:property>
</services:property-placeholder>
<!-- 共享配置。 -->
<!-- shared configuration -->
<beans:import resource="common/webx-component-and-root.xml"/>
<beans:import resource="common/webx-component.xml"/>
<!-- 执行管道。 -->
<!-- execute pipeline -->
<beans:import resource="common/pipeline.xml"/>
<!-- 装载模块。 -->
<!-- load module -->
<services:module-loader>
<ml-factories:class-modules>
<ml-factories:search-packages type="$1" packages="com.alibaba.dubbo.governance.web.sysmanage.module.*"/>
......
......@@ -18,37 +18,37 @@
http://www.springframework.org/schema/beans http://localhost:8080/schema/www.springframework.org/schema/beans/spring-beans.xsd
http://www.alibaba.com/schema/services/request-contexts/rewrite/handlers http://localhost:8080/schema/services-request-contexts-rewrite-handlers.xsd">
<!-- 支持${xxx}替换。 -->
<!-- support placeholder like ${xxx} -->
<services:property-placeholder>
<services:property key="component">common</services:property>
</services:property-placeholder>
<!-- 共享配置。 -->
<!-- shared configuration -->
<beans:import resource="common/webx-component-and-root.xml"/>
<!-- 异常管道。 -->
<!-- exception pipelene -->
<beans:import resource="common/pipeline-exception.xml"/>
<!-- 资源装载。 -->
<!-- load resources -->
<beans:import resource="common/resources.xml"/>
<!-- URI生成。 -->
<!-- URI generation -->
<beans:import resource="common/uris.xml"/>
<!-- URI重定向。 -->
<!-- URI redirection -->
<beans:import resource="common/rewrite.xml"/>
<!-- 应用资源 -->
<!-- application resources -->
<beans:import resource="classpath:META-INF/spring/dubbo-admin.xml"/>
<!-- 综合设置。 -->
<!-- other settings -->
<services:webx-configuration>
<!-- 默认将productionMode设为true,建议在jetty插件中设置-DproductionMode=false。 -->
<!-- default value of productionMode is true, we recommend set -DproductionMode=false in jetty plugin. -->
<services:productionMode>true</services:productionMode>
<services:components defaultComponent="home"/>
</services:webx-configuration>
<!-- 设置request/response/session。 -->
<!-- configure request/response/session. -->
<services:request-contexts xmlns="http://www.alibaba.com/schema/services/request-contexts">
<rewrite>
<rule pattern=".*\.htm">
......@@ -82,10 +82,10 @@
</session>
</services:request-contexts>
<!-- 支持上传文件。 -->
<!-- file upload support -->
<services:upload sizeMax="5M"/>
<!-- 将beans暴露给模板。这里定义的tools可被所有components之间共享。 -->
<!-- Expose the beans to the template. The tools defined here can be shared by all components. -->
<services:pull xmlns="http://www.alibaba.com/schema/services/pull/factories">
<utils/>
<page-tool/>
......@@ -99,7 +99,7 @@
<services:form/>
<!-- 装载模块。 -->
<!-- load module -->
<services:module-loader>
<ml-factories:class-modules>
<ml-factories:search-packages type="$1" packages="com.alibaba.dubbo.governance.web.common.module.*"/>
......
/**
* Project: dubbo.registry.server-2.1.0-SNAPSHOT
* <p>
* File Created at Oct 31, 2011
* $Id: PageListTest.java 181192 2012-06-21 05:05:47Z tony.chenl $
* <p>
* Copyright 1999-2100 Alibaba.com Corporation Limited.
* All rights reserved.
* <p>
* This software is the confidential and proprietary information of
* Alibaba Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Alibaba.com.
/*
* 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 com.alibaba.dubbo.registry.common.domain;
......@@ -20,7 +21,6 @@ import org.junit.Test;
/**
* TODO Comment of PageListTest
* @author haomin.liuhm
*
*/
public class PageListTest {
......
/**
* Project: dubbo.registry.server
* <p>
* File Created at Oct 19, 2010
* $Id: ParseUtilsTest.java 181192 2012-06-21 05:05:47Z tony.chenl $
* <p>
* Copyright 1999-2100 Alibaba.com Corporation Limited.
* All rights reserved.
* <p>
* This software is the confidential and proprietary information of
* Alibaba Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Alibaba.com.
/*
* 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 com.alibaba.dubbo.registry.common.route;
......@@ -31,7 +32,6 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* @author william.liangf
*/
public class ParseUtilsTest {
@Test
......
/**
* Project: dubbo.registry.server
* <p>
* File Created at Oct 18, 2010
* $Id: RouteRuleTest.java 181192 2012-06-21 05:05:47Z tony.chenl $
* <p>
* Copyright 1999-2100 Alibaba.com Corporation Limited.
* All rights reserved.
* <p>
* This software is the confidential and proprietary information of
* Alibaba Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Alibaba.com.
/*
* 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 com.alibaba.dubbo.registry.common.route;
......@@ -40,8 +41,6 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/**
* @author william.liangf
* @author ding.lid
*/
public class RouteRuleTest {
final RouteRule.MatchPair pair;
......
/**
* Project: dubbo.registry.server
* <p>
* File Created at Oct 20, 2010
* $Id: RouteRuleUtilsTest.java 181192 2012-06-21 05:05:47Z tony.chenl $
* <p>
* Copyright 1999-2100 Alibaba.com Corporation Limited.
* All rights reserved.
* <p>
* This software is the confidential and proprietary information of
* Alibaba Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Alibaba.com.
/*
* 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 com.alibaba.dubbo.registry.common.route;
......@@ -34,7 +35,6 @@ import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
/**
* @author william.liangf
*/
public class RouteRuleUtilsTest {
......
/*
* 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 com.alibaba.dubbo.registry.common.route;
import com.alibaba.dubbo.registry.common.domain.Route;
......@@ -14,9 +30,8 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* @author ding.lid
*/
// FIXME GhostMethod is Bug!! 下个版本解决
// FIXME GhostMethod is Bug!! Should be fixed
public class RouteUtilsTest {
private Map<String, String> serviceUrls = new HashMap<String, String>();
......
/**
* Project: dubbo.registry.common-2.1.0-SNAPSHOT
* <p>
* File Created at Dec 9, 2011
* $Id: ToolTest.java 181192 2012-06-21 05:05:47Z tony.chenl $
* <p>
* Copyright 1999-2100 Alibaba.com Corporation Limited.
* All rights reserved.
* <p>
* This software is the confidential and proprietary information of
* Alibaba Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Alibaba.com.
/*
* 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 com.alibaba.dubbo.registry.common.util;
......@@ -20,7 +21,6 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author ding.lid
*/
public class ToolTest {
@Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册