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

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 3ddfc884ce07bbe3a0acda5f990f3d4de8ad764e
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 11 14:28:07 2026 +0000

    f
---
 .../apache/coyote/http2/TestStreamInputBuffer.java  | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/test/org/apache/coyote/http2/TestStreamInputBuffer.java 
b/test/org/apache/coyote/http2/TestStreamInputBuffer.java
index 38f430c1b4..a816d0be9c 100644
--- a/test/org/apache/coyote/http2/TestStreamInputBuffer.java
+++ b/test/org/apache/coyote/http2/TestStreamInputBuffer.java
@@ -19,14 +19,9 @@ package org.apache.coyote.http2;
 import java.nio.ByteBuffer;
 import java.util.concurrent.atomic.AtomicReference;
 
-import jakarta.servlet.ServletConnection;
-
 import org.junit.Assert;
 import org.junit.Test;
 
-import org.apache.tomcat.util.net.SocketWrapperBase;
-import org.easymock.EasyMock;
-
 public class TestStreamInputBuffer {
 
     /*
@@ -36,13 +31,7 @@ public class TestStreamInputBuffer {
      */
     @Test
     public void testRequestBodyFullyReadRace() throws Exception {
-        SocketWrapperBase<?> socket = 
EasyMock.createNiceMock(SocketWrapperBase.class);
-        ServletConnection connection = 
EasyMock.createNiceMock(ServletConnection.class);
-        EasyMock.expect(socket.getServletConnection("h2c", 
"")).andStubReturn(connection);
-        EasyMock.expect(connection.getConnectionId()).andStubReturn("0");
-        EasyMock.replay(socket, connection);
-
-        Http2UpgradeHandler handler = new Http2UpgradeHandler(new 
Http2Protocol(), null, null, socket);
+        Http2UpgradeHandler handler = new Http2UpgradeHandler(new 
Http2Protocol(), null, null);
 
         for (int i = 0; i < 20; i++) {
             Stream stream = new Stream(Integer.valueOf(3), handler);
@@ -86,13 +75,7 @@ public class TestStreamInputBuffer {
      */
     @Test
     public void testIsReadyForReadDataArrivesDuringCheck() throws Exception {
-        SocketWrapperBase<?> socket = 
EasyMock.createNiceMock(SocketWrapperBase.class);
-        ServletConnection connection = 
EasyMock.createNiceMock(ServletConnection.class);
-        EasyMock.expect(socket.getServletConnection("h2c", 
"")).andStubReturn(connection);
-        EasyMock.expect(connection.getConnectionId()).andStubReturn("0");
-        EasyMock.replay(socket, connection);
-
-        Http2UpgradeHandler handler = new Http2UpgradeHandler(new 
Http2Protocol(), null, null, socket);
+        Http2UpgradeHandler handler = new Http2UpgradeHandler(new 
Http2Protocol(), null, null);
 
         Stream stream = new Stream(Integer.valueOf(3), handler);
         stream.state.receivedStartOfHeaders();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to