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.
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: