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

jianbin pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git


The following commit(s) were added to refs/heads/2.x by this push:
     new e590de5f0d optimize: remove the useless file (#6192)
e590de5f0d is described below

commit e590de5f0d4f2e5d4dfe21e3a7c29bc4e3a93ed7
Author: IT云清     Seata Committer 
<33415199+lightclouds...@users.noreply.github.com>
AuthorDate: Sat Dec 23 16:50:05 2023 +0800

    optimize: remove the useless file (#6192)
---
 changes/en-us/2.x.md                               |  1 +
 changes/zh-cn/2.x.md                               |  1 +
 .../core/rpc/netty/MessageCodecHandlerTest.java    | 94 ----------------------
 3 files changed, 2 insertions(+), 94 deletions(-)

diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index b65f849f2c..18938506eb 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -36,6 +36,7 @@ Add changes here for all PR submitted to the 2.x branch.
 - [[#6178](https://github.com/apache/incubator-seata/pull/6178)] update the 
header of Apache License
 - [[#6186](https://github.com/apache/incubator-seata/pull/6186)] update 
README.md(update mailing list and repository urls)
 - [[#6184](https://github.com/apache/incubator-seata/pull/6184)] update NOTICE 
file
+- [[#6192](https://github.com/apache/incubator-seata/pull/6192)] remove the 
useless file
 - [[#6194](https://github.com/apache/incubator-seata/pull/6194)] fix asf.yaml 
parse error
 - [[#6116](https://github.com/apache/incubator-seata/pull/6116)] rewrite 
NettyPoolKey's hashcode and equals to fix duplicate construction of channel 
object pools
 - [[#6195](https://github.com/apache/incubator-seata/pull/6195)] update the 
url in change log to apache/incubator-seata
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 89d217705c..4e6b769315 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -35,6 +35,7 @@
 - [[#6178](https://github.com/apache/incubator-seata/pull/6178)] 更新Apache 
License头信息
 - [[#6186](https://github.com/apache/incubator-seata/pull/6186)] 
更新README.md(更新邮件列表和一些生态访问链接)
 - [[#6184](https://github.com/apache/incubator-seata/pull/6184)] 更新NOTICE文件
+- [[#6192](https://github.com/apache/incubator-seata/pull/6192)] 移除无用文件
 - [[#6194](https://github.com/apache/incubator-seata/pull/6194)] 修复 asf.yaml 
解析错误问题
 - [[#6116](https://github.com/apache/incubator-seata/pull/6116)] 
重写NettyPoolKey的hashcode和equals,修复了channel对象池重复构建问题
 - [[#6195](https://github.com/apache/incubator-seata/pull/6195)] 更新 change log 
中的 seata url 为 apache/incubator-seata
diff --git 
a/core/src/test/java/io/seata/core/rpc/netty/MessageCodecHandlerTest.java 
b/core/src/test/java/io/seata/core/rpc/netty/MessageCodecHandlerTest.java
deleted file mode 100644
index 429a131ff0..0000000000
--- a/core/src/test/java/io/seata/core/rpc/netty/MessageCodecHandlerTest.java
+++ /dev/null
@@ -1,94 +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.
- */
-///*
-// *  Copyright 1999-2019 Seata.io 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
-// *
-// *  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 io.seata.core.rpc.netty;
-//
-//import java.util.ArrayList;
-//import java.util.List;
-//
-//import io.netty.buffer.ByteBuf;
-//import io.netty.buffer.UnpooledByteBufAllocator;
-//import io.netty.channel.ChannelHandlerContext;
-//import io.seata.core.protocol.RpcMessage;
-//import io.seata.core.protocol.transaction.GlobalBeginRequest;
-//import org.junit.Ignore;
-//import org.junit.jupiter.api.Test;
-//
-//import static org.assertj.core.api.Assertions.assertThat;
-//import static org.assertj.core.api.Assertions.fail;
-//
-//public class MessageCodecHandlerTest {
-//
-//    @Test
-//    @Ignore("seata serialize can not support this way,only we can change 
serialize type dynamicly.")
-//    public void encodeAndDecode() {
-//
-//        MessageCodecHandler messageCodecHandler = new MessageCodecHandler();
-//        ByteBuf out = UnpooledByteBufAllocator.DEFAULT.directBuffer(1024);
-//
-//        GlobalBeginRequest globalBeginRequest = new GlobalBeginRequest();
-//        globalBeginRequest.setTransactionName("trans-1");
-//        globalBeginRequest.setTimeout(3000);
-//
-//        RpcMessage msg = new RpcMessage();
-//        msg.setId(1);
-//        msg.setAsync(false);
-//        msg.setHeartbeat(false);
-//        msg.setRequest(true);
-//        msg.setBody(globalBeginRequest);
-//        ChannelHandlerContext ctx = null;
-//        try {
-//            messageCodecHandler.encode(ctx, msg, out);
-//        } catch (Exception e) {
-//            fail(e.getMessage());
-//        }
-//        List<Object> objetcs = new ArrayList<>();
-//        try {
-//            messageCodecHandler.decode(ctx, out, objetcs);
-//        } catch (Exception e) {
-//            fail(e.getMessage());
-//        }
-//
-//        assertThat(objetcs.size()).isEqualTo(1);
-//        final Object actual = objetcs.get(0);
-//        assertThat(actual instanceof RpcMessage).isEqualTo(true);
-//
-//        RpcMessage rpcMessage = (RpcMessage)actual;
-//
-//        GlobalBeginRequest decodeGlobalBeginRequest = 
(GlobalBeginRequest)rpcMessage.getBody();
-//        assertThat(decodeGlobalBeginRequest.getTransactionName()).isEqualTo(
-//            globalBeginRequest.getTransactionName());
-//        
assertThat(decodeGlobalBeginRequest.getTimeout()).isEqualTo(globalBeginRequest.getTimeout());
-//        
assertThat(decodeGlobalBeginRequest.getTypeCode()).isEqualTo(globalBeginRequest.getTypeCode());
-//
-//    }
-//
-//}


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to