Skip to content

Add unit tests for FilterChainImpl #112

@codebyNorthsteep

Description

@codebyNorthsteep

Issue Description

Implement unit tests for FilterChainImpl to verify the core request-processing logic of the server.

Goal:

  • Ensure that the server correctly manages the transition between security filters and the final request handling (TerminalHandler).

  • Test Cases to Implement:

  • Sequential Execution: Verify that filters are called in the order they are added and that the TerminalHandler is called last.

  • Chain Interruption: Verify that if a filter (e.g., an IP-blocker) does not go on to the next filter (by not calling chain.doFilter()), the TerminalHandler is never reached.

Why this is needed:

  • This is critical for our server's security. Without these tests, we cannot guarantee that our Filters actually have the power to block unauthorized requests before they reach our files.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions