Home / Function/ testMultipleResourcesInTheClassLoader() — netty Function Reference

testMultipleResourcesInTheClassLoader() — netty Function Reference

Architecture documentation for the testMultipleResourcesInTheClassLoader() function in NativeLibraryLoaderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f7852746_d84d_00a9_4e7c_ac32d912b0c5["testMultipleResourcesInTheClassLoader()"]
  9022161d_835d_6545_8d58_577531ba9962["NativeLibraryLoaderTest"]
  f7852746_d84d_00a9_4e7c_ac32d912b0c5 -->|defined in| 9022161d_835d_6545_8d58_577531ba9962
  style f7852746_d84d_00a9_4e7c_ac32d912b0c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/NativeLibraryLoaderTest.java lines 77–94

    @Test
    @EnabledOnOs(LINUX)
    @EnabledIf("is_x86_64")
    void testMultipleResourcesInTheClassLoader() throws MalformedURLException {
        URL url1 = new File("src/test/data/NativeLibraryLoader/1").toURI().toURL();
        URL url2 = new File("src/test/data/NativeLibraryLoader/2").toURI().toURL();
        final URLClassLoader loader = new URLClassLoader(new URL[] {url1, url2});
        final String resourceName = "test1";

        Exception ise = assertThrows(IllegalStateException.class, new Executable() {
            @Override
            public void execute() {
                NativeLibraryLoader.load(resourceName, loader);
            }
        });
        assertTrue(ise.getMessage()
                    .contains("Multiple resources found for 'META-INF/native/lib" + resourceName + ".so'"));
    }

Domain

Subdomains

Frequently Asked Questions

What does testMultipleResourcesInTheClassLoader() do?
testMultipleResourcesInTheClassLoader() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/NativeLibraryLoaderTest.java.
Where is testMultipleResourcesInTheClassLoader() defined?
testMultipleResourcesInTheClassLoader() is defined in common/src/test/java/io/netty/util/internal/NativeLibraryLoaderTest.java at line 77.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free