testParse() — netty Function Reference
Architecture documentation for the testParse() function in HttpHeaderDateFormatTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 009d6887_8bde_5fd7_7193_225d18e5e04d["testParse()"] 2bcd7e1b_74f8_c063_9d79_30a409deb2b3["HttpHeaderDateFormatTest"] 009d6887_8bde_5fd7_7193_225d18e5e04d -->|defined in| 2bcd7e1b_74f8_c063_9d79_30a409deb2b3 style 009d6887_8bde_5fd7_7193_225d18e5e04d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpHeaderDateFormatTest.java lines 35–58
@Test
public void testParse() throws ParseException {
HttpHeaderDateFormat format = HttpHeaderDateFormat.get();
final Date parsedDateWithSingleDigitDay = format.parse("Sun, 6 Nov 1994 08:49:37 GMT");
assertNotNull(parsedDateWithSingleDigitDay);
assertEquals(DATE, parsedDateWithSingleDigitDay);
final Date parsedDateWithDoubleDigitDay = format.parse("Sun, 06 Nov 1994 08:49:37 GMT");
assertNotNull(parsedDateWithDoubleDigitDay);
assertEquals(DATE, parsedDateWithDoubleDigitDay);
final Date parsedDateWithDashSeparatorSingleDigitDay = format.parse("Sunday, 06-Nov-94 08:49:37 GMT");
assertNotNull(parsedDateWithDashSeparatorSingleDigitDay);
assertEquals(DATE, parsedDateWithDashSeparatorSingleDigitDay);
final Date parsedDateWithSingleDoubleDigitDay = format.parse("Sunday, 6-Nov-94 08:49:37 GMT");
assertNotNull(parsedDateWithSingleDoubleDigitDay);
assertEquals(DATE, parsedDateWithSingleDoubleDigitDay);
final Date parsedDateWithoutGMT = format.parse("Sun Nov 6 08:49:37 1994");
assertNotNull(parsedDateWithoutGMT);
assertEquals(DATE, parsedDateWithoutGMT);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testParse() do?
testParse() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpHeaderDateFormatTest.java.
Where is testParse() defined?
testParse() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpHeaderDateFormatTest.java at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free