assertWritabilityChanged() — netty Function Reference
Architecture documentation for the assertWritabilityChanged() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 90444244_2b60_c843_559a_6c55d7a4e9ac["assertWritabilityChanged()"] f8fd7697_92d4_6455_4dd8_09a33ac81a6f["DefaultHttp2RemoteFlowControllerTest"] 90444244_2b60_c843_559a_6c55d7a4e9ac -->|defined in| f8fd7697_92d4_6455_4dd8_09a33ac81a6f 9fed0499_471e_ac3f_c01d_022267ff0534["setup()"] 9fed0499_471e_ac3f_c01d_022267ff0534 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac c5c060aa_8632_91ed_8225_abce4cb795ef["initialWindowSizeShouldOnlyChangeStreams()"] c5c060aa_8632_91ed_8225_abce4cb795ef -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac ecdc5a9a_67c1_67ad_e2f7_250f26a0857c["initialWindowUpdateShouldSendPayload()"] ecdc5a9a_67c1_67ad_e2f7_250f26a0857c -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 16f39ce8_0699_4fca_17de_f6237b24d4f8["successiveSendsShouldNotInteract()"] 16f39ce8_0699_4fca_17de_f6237b24d4f8 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac bdbd752a_96ca_92fb_7341_a4ddb7b401e6["negativeWindowShouldNotThrowException()"] bdbd752a_96ca_92fb_7341_a4ddb7b401e6 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 4a364a1a_0a19_5f2d_adbd_37f0d918fdfb["initialWindowUpdateShouldSendEmptyFrame()"] 4a364a1a_0a19_5f2d_adbd_37f0d918fdfb -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 6dd01043_550a_82df_19c0_1704c24d8464["initialWindowUpdateShouldSendPartialFrame()"] 6dd01043_550a_82df_19c0_1704c24d8464 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac d2dab0f5_680b_0871_7ef7_ff0bb34b4834["connectionWindowUpdateShouldSendFrame()"] d2dab0f5_680b_0871_7ef7_ff0bb34b4834 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac 82c587a3_7c12_8878_8f8c_6570e288d89b["connectionWindowUpdateShouldSendPartialFrame()"] 82c587a3_7c12_8878_8f8c_6570e288d89b -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac cbf824fe_e9cc_34ce_8efe_68dfd754d243["nonWritableChannelDoesNotAttemptToWrite()"] cbf824fe_e9cc_34ce_8efe_68dfd754d243 -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac bc876d3d_5779_94ca_7427_53cdf7222fdd["contextShouldSendQueuedFramesWhenSet()"] bc876d3d_5779_94ca_7427_53cdf7222fdd -->|calls| 90444244_2b60_c843_559a_6c55d7a4e9ac style 90444244_2b60_c843_559a_6c55d7a4e9ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 971–987
private void assertWritabilityChanged(int amt, boolean writable) {
verify(listener, times(amt)).writabilityChanged(stream(STREAM_A));
verify(listener, times(amt)).writabilityChanged(stream(STREAM_B));
verify(listener, times(amt)).writabilityChanged(stream(STREAM_C));
verify(listener, times(amt)).writabilityChanged(stream(STREAM_D));
if (writable) {
assertTrue(controller.isWritable(stream(STREAM_A)));
assertTrue(controller.isWritable(stream(STREAM_B)));
assertTrue(controller.isWritable(stream(STREAM_C)));
assertTrue(controller.isWritable(stream(STREAM_D)));
} else {
assertFalse(controller.isWritable(stream(STREAM_A)));
assertFalse(controller.isWritable(stream(STREAM_B)));
assertFalse(controller.isWritable(stream(STREAM_C)));
assertFalse(controller.isWritable(stream(STREAM_D)));
}
}
Domain
Subdomains
Defined In
Called By
- connectionWindowUpdateShouldSendFrame()
- connectionWindowUpdateShouldSendPartialFrame()
- contextShouldSendQueuedFramesWhenSet()
- initialWindowSizeShouldOnlyChangeStreams()
- initialWindowUpdateShouldSendEmptyFrame()
- initialWindowUpdateShouldSendPartialFrame()
- initialWindowUpdateShouldSendPayload()
- negativeWindowShouldNotThrowException()
- nonWritableChannelDoesNotAttemptToWrite()
- setup()
- successiveSendsShouldNotInteract()
Source
Frequently Asked Questions
What does assertWritabilityChanged() do?
assertWritabilityChanged() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is assertWritabilityChanged() defined?
assertWritabilityChanged() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 971.
What calls assertWritabilityChanged()?
assertWritabilityChanged() is called by 11 function(s): connectionWindowUpdateShouldSendFrame, connectionWindowUpdateShouldSendPartialFrame, contextShouldSendQueuedFramesWhenSet, initialWindowSizeShouldOnlyChangeStreams, initialWindowUpdateShouldSendEmptyFrame, initialWindowUpdateShouldSendPartialFrame, initialWindowUpdateShouldSendPayload, negativeWindowShouldNotThrowException, and 3 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free