Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for anyMatch (0.09 sec)

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

            var activeResources = resourceManager.getActiveResources();
            assertNotNull(activeResources);
            assertFalse(activeResources.isEmpty());
    
            boolean found = activeResources.stream().anyMatch(desc -> desc.contains("TestResource"));
            assertTrue(found);
        }
    
        @Test
        @DisplayName("Test multiple close calls on managed resource")
        void testMultipleCloseOnManagedResource() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            // Clean up metrics for connections that no longer exist
            connectionMetrics.entrySet().removeIf(entry -> {
                String key = entry.getKey();
                boolean exists = connections.stream().anyMatch(conn -> getConnectionKey(conn).equals(key));
                return !exists;
            });
        }
    
        /**
         * Get detailed health statistics
         */
        public PoolHealthMetrics getHealthMetrics() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                    // Verify expected shares are present
                    List<String> shareList = List.of(shares);
                    boolean hasPublic = shareList.stream().anyMatch(s -> s.toLowerCase().contains("public"));
                    boolean hasShared = shareList.stream().anyMatch(s -> s.toLowerCase().contains("shared"));
    
                    assertTrue(hasPublic || hasShared, "Should contain expected shares");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top