GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Also test DATA on RESERVED_LOCAL streams in DefaultHttp2ConnectionDec… · netty/netty@cd8b3f5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-http2/src/test/java/io/netty/handler/codec/http2
    • DefaultHttp2ConnectionDecoderTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java‎

Copy file name to clipboardExpand all lines: codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java
+12-2Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import static io.netty.handler.codec.http2.Http2PromisedRequestVerifier.ALWAYS_VERIFY;
4949
import static io.netty.handler.codec.http2.Http2Stream.State.IDLE;
5050
import static io.netty.handler.codec.http2.Http2Stream.State.OPEN;
51+
import static io.netty.handler.codec.http2.Http2Stream.State.RESERVED_LOCAL;
5152
import static io.netty.handler.codec.http2.Http2Stream.State.RESERVED_REMOTE;
5253
import static io.netty.util.CharsetUtil.UTF_8;
5354

@@ -403,8 +404,17 @@ public void execute() throws Throwable {
403404
}
404405

405406
@Test
406-
public void dataReadForReservedStreamShouldThrowConnectionError() throws Exception {
407-
when(stream.state()).thenReturn(RESERVED_REMOTE);
407+
public void dataReadForReservedRemoteStreamShouldThrowConnectionError() throws Exception {
408+
dataReadForReservedStreamShouldThrowConnectionError(RESERVED_REMOTE);
409+
}
410+
411+
@Test
412+
public void dataReadForReservedLocalStreamShouldThrowConnectionError() throws Exception {
413+
dataReadForReservedStreamShouldThrowConnectionError(RESERVED_LOCAL);
414+
}
415+
416+
private void dataReadForReservedStreamShouldThrowConnectionError(Http2Stream.State state) throws Exception {
417+
when(stream.state()).thenReturn(state);
408418
final ByteBuf data = dummyData();
409419
try {
410420
Http2Exception ex = assertThrows(Http2Exception.class, new Executable() {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.