unknownFrameTypeShouldThrowAndBeReleased() — netty Function Reference
Architecture documentation for the unknownFrameTypeShouldThrowAndBeReleased() function in Http2FrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 85136a15_32e2_f20a_fcea_44cccb0909a9["unknownFrameTypeShouldThrowAndBeReleased()"] 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"] 85136a15_32e2_f20a_fcea_44cccb0909a9 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c 181aa242_e18d_9d66_d3f7_7abbaaf4c574["deallocate()"] 85136a15_32e2_f20a_fcea_44cccb0909a9 -->|calls| 181aa242_e18d_9d66_d3f7_7abbaaf4c574 style 85136a15_32e2_f20a_fcea_44cccb0909a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 375–402
@Test
public void unknownFrameTypeShouldThrowAndBeReleased() throws Exception {
class UnknownHttp2Frame extends AbstractReferenceCounted implements Http2Frame {
@Override
public String name() {
return "UNKNOWN";
}
@Override
protected void deallocate() {
}
@Override
public ReferenceCounted touch(Object hint) {
return this;
}
}
UnknownHttp2Frame frame = new UnknownHttp2Frame();
assertEquals(1, frame.refCnt());
ChannelFuture f = channel.write(frame);
f.await();
assertTrue(f.isDone());
assertFalse(f.isSuccess());
assertInstanceOf(UnsupportedMessageTypeException.class, f.cause());
assertEquals(0, frame.refCnt());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does unknownFrameTypeShouldThrowAndBeReleased() do?
unknownFrameTypeShouldThrowAndBeReleased() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is unknownFrameTypeShouldThrowAndBeReleased() defined?
unknownFrameTypeShouldThrowAndBeReleased() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 375.
What does unknownFrameTypeShouldThrowAndBeReleased() call?
unknownFrameTypeShouldThrowAndBeReleased() calls 1 function(s): deallocate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free