Home / Function/ testChooseKeyMaterial() — netty Function Reference

testChooseKeyMaterial() — netty Function Reference

Architecture documentation for the testChooseKeyMaterial() function in OpenSslKeyMaterialProviderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  af54c4e4_bde6_8f15_8883_fbaba42a9fc1["testChooseKeyMaterial()"]
  014487c2_548f_89a4_daad_07995dfebf3f["OpenSslKeyMaterialProviderTest"]
  af54c4e4_bde6_8f15_8883_fbaba42a9fc1 -->|defined in| 014487c2_548f_89a4_daad_07995dfebf3f
  75526ad7_335c_2880_311b_e81041d0ffcc["assertRelease()"]
  af54c4e4_bde6_8f15_8883_fbaba42a9fc1 -->|calls| 75526ad7_335c_2880_311b_e81041d0ffcc
  style af54c4e4_bde6_8f15_8883_fbaba42a9fc1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslKeyMaterialProviderTest.java lines 78–92

    @Test
    public void testChooseKeyMaterial() throws Exception {
        OpenSslKeyMaterialProvider provider = newMaterialProvider(newKeyManagerFactory(), PASSWORD);
        OpenSslKeyMaterial nonExistingMaterial = provider.chooseKeyMaterial(
                UnpooledByteBufAllocator.DEFAULT, NON_EXISTING_ALIAS);
        assertNull(nonExistingMaterial);

        OpenSslKeyMaterial material = provider.chooseKeyMaterial(UnpooledByteBufAllocator.DEFAULT, EXISTING_ALIAS);
        assertNotNull(material);
        assertNotEquals(0, material.certificateChainAddress());
        assertNotEquals(0, material.privateKeyAddress());
        assertRelease(material);

        provider.destroy();
    }

Domain

Subdomains

Frequently Asked Questions

What does testChooseKeyMaterial() do?
testChooseKeyMaterial() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslKeyMaterialProviderTest.java.
Where is testChooseKeyMaterial() defined?
testChooseKeyMaterial() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslKeyMaterialProviderTest.java at line 78.
What does testChooseKeyMaterial() call?
testChooseKeyMaterial() calls 1 function(s): assertRelease.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free