Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testLeakDetection (0.27 sec)

  1. src/test/java/jcifs/util/ResourceManagerTest.java

            assertTrue(resource2.isClosed());
        }
    
        @Test
        @DisplayName("Test leak detection for unclosed resources")
        @Timeout(value = 5, unit = TimeUnit.SECONDS)
        void testLeakDetection() throws InterruptedException {
            // Create resource that will be garbage collected without closing
            createLeakyResource();
    
            // Force garbage collection
            System.gc();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top