Home / Function/ testGetProperty() — netty Function Reference

testGetProperty() — netty Function Reference

Architecture documentation for the testGetProperty() function in MqttPropertiesTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3b9cc474_5fd7_2f65_101d_592d9d68c4e4["testGetProperty()"]
  f414ff6c_018e_0573_189d_472f0d888c3d["MqttPropertiesTest"]
  3b9cc474_5fd7_2f65_101d_592d9d68c4e4 -->|defined in| f414ff6c_018e_0573_189d_472f0d888c3d
  style 3b9cc474_5fd7_2f65_101d_592d9d68c4e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/test/java/io/netty/handler/codec/mqtt/MqttPropertiesTest.java lines 46–64

    @Test
    public void testGetProperty() {
        MqttProperties props = createSampleProperties();

        assertEquals(
                "text/plain",
                ((MqttProperties.StringProperty) props.getProperty(CONTENT_TYPE)).value);
        assertEquals(
                10,
                ((MqttProperties.IntegerProperty) props.getProperty(SUBSCRIPTION_IDENTIFIER)).value.intValue());

        List<MqttProperties.StringPair> expectedUserProps = new ArrayList<MqttProperties.StringPair>();
        expectedUserProps.add(new MqttProperties.StringPair("isSecret", "true"));
        expectedUserProps.add(new MqttProperties.StringPair("tag", "firstTag"));
        expectedUserProps.add(new MqttProperties.StringPair("tag", "secondTag"));
        List<MqttProperties.StringPair> actualUserProps =
                ((MqttProperties.UserProperties) props.getProperty(USER_PROPERTY)).value;
        assertEquals(expectedUserProps, actualUserProps);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free