testSpecificCustomBaseDir() — netty Function Reference
Architecture documentation for the testSpecificCustomBaseDir() function in MixedTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD abbf057c_4e8e_9161_fb62_aba08401d295["testSpecificCustomBaseDir()"] 735596ac_d321_c087_79a1_b4d75e1724dc["MixedTest"] abbf057c_4e8e_9161_fb62_aba08401d295 -->|defined in| 735596ac_d321_c087_79a1_b4d75e1724dc style abbf057c_4e8e_9161_fb62_aba08401d295 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/MixedTest.java lines 62–75
@Test
public void testSpecificCustomBaseDir() throws IOException {
File baseDir = new File("target/MixedTest/testSpecificCustomBaseDir");
baseDir.mkdirs(); // we don't need to clean it since it is in volatile files anyway
MixedFileUpload upload = new MixedFileUpload("foo", "foo", "foo", "UTF-8", CharsetUtil.UTF_8, 1000, 100,
baseDir.getAbsolutePath(), true);
upload.addContent(Unpooled.wrappedBuffer(new byte[1000]), true);
assertTrue(upload.getFile().getAbsolutePath().startsWith(baseDir.getAbsolutePath()));
assertTrue(upload.getFile().exists());
assertEquals(1000, upload.getFile().length());
upload.delete();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSpecificCustomBaseDir() do?
testSpecificCustomBaseDir() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/MixedTest.java.
Where is testSpecificCustomBaseDir() defined?
testSpecificCustomBaseDir() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/MixedTest.java at line 62.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free