testAlpnCompatibleProtocolsDifferentClientOrder() — netty Function Reference
Architecture documentation for the testAlpnCompatibleProtocolsDifferentClientOrder() function in JdkSslEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fe41ba34_429d_b660_5140_73631e6770a4["testAlpnCompatibleProtocolsDifferentClientOrder()"] 30adda7f_4d88_ce9b_59a8_bf86122e30b1["JdkSslEngineTest"] fe41ba34_429d_b660_5140_73631e6770a4 -->|defined in| 30adda7f_4d88_ce9b_59a8_bf86122e30b1 26c9d431_d7e9_3f0f_c077_a396cd607cb3["runTest()"] fe41ba34_429d_b660_5140_73631e6770a4 -->|calls| 26c9d431_d7e9_3f0f_c077_a396cd607cb3 style fe41ba34_429d_b660_5140_73631e6770a4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/JdkSslEngineTest.java lines 248–267
@MethodSource("newJdkParams")
@ParameterizedTest
public void testAlpnCompatibleProtocolsDifferentClientOrder(JdkSSLEngineTestParam param) throws Exception {
try {
param.providerType.activate(this);
// Even the preferred application protocol appears second in the client's list, it will be picked
// because it's the first one on server's list.
ApplicationProtocolConfig clientApn = acceptingNegotiator(Protocol.ALPN,
FALLBACK_APPLICATION_LEVEL_PROTOCOL, PREFERRED_APPLICATION_LEVEL_PROTOCOL);
ApplicationProtocolConfig serverApn = failingNegotiator(Protocol.ALPN,
PREFERRED_APPLICATION_LEVEL_PROTOCOL, FALLBACK_APPLICATION_LEVEL_PROTOCOL);
setupHandlers(param, serverApn, clientApn);
assertNull(serverException);
runTest(PREFERRED_APPLICATION_LEVEL_PROTOCOL);
} catch (SkipTestException e) {
// ALPN availability is dependent on the java version. If ALPN is not available because of
// java version incompatibility don't fail the test, but instead just skip the test
throw new TestAbortedException("Not expected", e);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testAlpnCompatibleProtocolsDifferentClientOrder() do?
testAlpnCompatibleProtocolsDifferentClientOrder() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/JdkSslEngineTest.java.
Where is testAlpnCompatibleProtocolsDifferentClientOrder() defined?
testAlpnCompatibleProtocolsDifferentClientOrder() is defined in handler/src/test/java/io/netty/handler/ssl/JdkSslEngineTest.java at line 248.
What does testAlpnCompatibleProtocolsDifferentClientOrder() call?
testAlpnCompatibleProtocolsDifferentClientOrder() calls 1 function(s): runTest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free