testAllowedMethods() — netty Function Reference
Architecture documentation for the testAllowedMethods() function in HttpPostRequestEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7239bc5f_2050_7a39_2ab6_ce37c9eeeeaf["testAllowedMethods()"] 3af766b2_b7f3_8257_aeb8_621a4404fee6["HttpPostRequestEncoderTest"] 7239bc5f_2050_7a39_2ab6_ce37c9eeeeaf -->|defined in| 3af766b2_b7f3_8257_aeb8_621a4404fee6 021481da_de80_d081_59fd_8f6466f077e6["shouldThrowExceptionIfNotAllowed()"] 7239bc5f_2050_7a39_2ab6_ce37c9eeeeaf -->|calls| 021481da_de80_d081_59fd_8f6466f077e6 style 7239bc5f_2050_7a39_2ab6_ce37c9eeeeaf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java lines 59–75
@Test
public void testAllowedMethods() throws Exception {
shouldThrowExceptionIfNotAllowed(HttpMethod.CONNECT);
shouldThrowExceptionIfNotAllowed(HttpMethod.PUT);
shouldThrowExceptionIfNotAllowed(HttpMethod.POST);
shouldThrowExceptionIfNotAllowed(HttpMethod.PATCH);
shouldThrowExceptionIfNotAllowed(HttpMethod.DELETE);
shouldThrowExceptionIfNotAllowed(HttpMethod.GET);
shouldThrowExceptionIfNotAllowed(HttpMethod.HEAD);
shouldThrowExceptionIfNotAllowed(HttpMethod.OPTIONS);
try {
shouldThrowExceptionIfNotAllowed(HttpMethod.TRACE);
fail("Should raised an exception with TRACE method");
} catch (ErrorDataEncoderException e) {
// Exception is willing
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testAllowedMethods() do?
testAllowedMethods() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java.
Where is testAllowedMethods() defined?
testAllowedMethods() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java at line 59.
What does testAllowedMethods() call?
testAllowedMethods() calls 1 function(s): shouldThrowExceptionIfNotAllowed.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free