Skip to content

[Java SDK] Add Unit Tests for Async Utility Classes #2230

@chiradip

Description

@chiradip

Title

Add unit tests for AsyncBytesSerializer and AsyncBytesDeserializer

Description

The async client's serialization utilities (AsyncBytesSerializer and AsyncBytesDeserializer) are used throughout the codebase but lack direct unit tests.

Tasks

  • Create AsyncBytesSerializerTest.java:
    • Test all primitive type serializations
    • Test string serialization with different encodings
    • Test edge cases (empty strings, null values)
    • Test buffer boundary conditions
  • Create AsyncBytesDeserializerTest.java:
    • Test all primitive type deserializations
    • Test string deserialization
    • Test buffer underflow scenarios
    • Verify proper buffer position management
  • Add tests for IggyFrameDecoder:
    • Test frame parsing
    • Test incomplete frame handling
    • Test maximum frame size limits

Labels

enhancement, testing, async-client, java-sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    javaIssues related to Java SDKtestNew testcase, or improvement of existing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions