Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 401 - 410 of 839 for ensures (0.04 seconds)

  1. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

            loadBalancer.setStrategy(LoadBalancingStrategy.WEIGHTED_RANDOM);
            when(mockChannelManager.getHealthyChannels()).thenReturn(Arrays.asList(channel1, channel2));
    
            // Test multiple selections to ensure it works
            for (int i = 0; i < 10; i++) {
                ChannelInfo selected = loadBalancer.selectChannel(mockMessage);
                assertTrue(Arrays.asList(channel1, channel2).contains(selected));
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/CopyRestApiTask.java

        }
    
        @Internal
        public DirectoryProperty getAdditionalYamlTestsDir() {
            return additionalYamlTestsDir;
        }
    
        @TaskAction
        void copy() {
            // clean the output directory to ensure no stale files persist
            fileSystemOperations.delete(d -> d.delete(outputResourceDir));
    
            // always copy the core specs if the task executes
            String projectPath = getProjectPathFromTask(getPath());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 7.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/it/admin/StatsTests.java

            logger.info("[END] statsResponseFormatTest");
        }
    
        @Test
        void multipleStatsCallsTest() {
            logger.info("[BEGIN] multipleStatsCallsTest");
    
            // Call stats endpoint multiple times to ensure consistency
            final Map<String, Object> searchBody = new HashMap<>();
    
            String response1 = checkGetMethod(searchBody, "").asString();
            Integer status1 = JsonPath.from(response1).get("response.status");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/curl/io/ContentCache.java

    import java.nio.file.Files;
    import java.util.logging.Logger;
    
    /**
     * ContentCache is a class that provides a way to cache content either in memory or in a file.
     * It implements the Closeable interface to ensure that resources are properly released.
     *
     * <p>This class supports two types of content caching:
     * <ul>
     *   <li>In-memory caching using a byte array</li>
     *   <li>File-based caching using a File object</li>
     * </ul>
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        }
    
        @Test
        @DisplayName("Should create new connections when reuse conditions are not met")
        void testNoConnectionReuse() throws Exception {
            // Given: Create a new pool for this test to ensure isolation
            SmbTransportPoolImpl testPool = new SmbTransportPoolImpl();
            when(ctx.getTransportPool()).thenReturn(testPool);
    
            // Create an existing connection
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/MultiChannelManager.java

                SmbTransportImpl transport = new SmbTransportImpl(context, serverUniAddress, port, localAddress, localPort, forceSigning);
    
                // Ensure the transport is connected and ready
                transport.ensureConnected();
    
                // Verify multi-channel capability (SMB3+ required)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

     * behaviour. The tests cover flag manipulation, byte‑buffer operations and
     * static helpers. Edge cases such as null or short arrays and negative
     * values are verified to ensure proper exception handling and byte
     * conversion.
     */
    @ExtendWith(MockitoExtension.class)
    class NtlmMessageTest {
    
        /** Lightweight concrete implementation used only for testing. */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/CopyRestTestsTask.java

        }
    
        @OutputDirectory
        public DirectoryProperty getOutputResourceDir() {
            return outputResourceDir;
        }
    
        @TaskAction
        void copy() {
            // clean the output directory to ensure no stale files persist
            fileSystemOperations.delete(d -> d.delete(outputResourceDir));
    
            String projectPath = getProjectPathFromTask(getPath());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 20 21:05:16 GMT 2021
    - 7.7K bytes
    - Click Count (0)
  9. README.md

    ### Contributing
    
    We welcome contributions! Please:
    1. Fork the repository
    2. Create a feature branch
    3. Make your changes with appropriate tests
    4. Run `mvn clean test` to ensure all tests pass
    5. Submit a pull request
    
    ### License
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 09:24:52 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

            assertEquals(expected, result, "Filter should evaluate .txt suffix correctly");
            verifyNoInteractions(mockDir);
        }
    
        /**
         * Invalid/null inputs: ensure filters can handle null name and dir.
         */
        @ParameterizedTest
        @DisplayName("null and empty names are handled explicitly")
        @NullAndEmptySource
        @ValueSource(strings = { " \t\n" })
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.3K bytes
    - Click Count (0)
Back to Top