Home / Function/ testNullPassword() — netty Function Reference

testNullPassword() — netty Function Reference

Architecture documentation for the testNullPassword() function in MqttConnectPayloadTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ae9a67ba_5530_f680_5608_7d449fd842c2["testNullPassword()"]
  bde995aa_18ff_ad56_4dd9_24ac8bd423d3["MqttConnectPayloadTest"]
  ae9a67ba_5530_f680_5608_7d449fd842c2 -->|defined in| bde995aa_18ff_ad56_4dd9_24ac8bd423d3
  style ae9a67ba_5530_f680_5608_7d449fd842c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttConnectPayloadTest.java lines 46–62

    @Test
    public void testNullPassword() throws Exception {
        String clientIdentifier = "clientIdentifier";
        String willTopic = "willTopic";
        byte[] willMessage = "willMessage".getBytes(CharsetUtil.UTF_8);
        String userName = "userName";
        byte[] password = null;
        MqttConnectPayload mqttConnectPayload = new MqttConnectPayload(clientIdentifier,
                MqttProperties.NO_PROPERTIES,
                willTopic,
                willMessage,
                userName,
                password);

        assertNull(mqttConnectPayload.passwordInBytes());
        assertNull(mqttConnectPayload.password());
    }

Domain

Subdomains

Frequently Asked Questions

What does testNullPassword() do?
testNullPassword() is a function in the netty codebase, defined in codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttConnectPayloadTest.java.
Where is testNullPassword() defined?
testNullPassword() is defined in codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttConnectPayloadTest.java at line 46.

Analyze Your Own Codebase

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

Try Supermodel Free