Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 1,085 for Ensure (0.12 seconds)

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

        void testConfigurationUpdates() {
            resourceManager.configure(5000, 1000, false, false);
    
            // Configuration should be applied (we can't directly verify private fields,
            // but we can ensure it doesn't throw)
            assertDoesNotThrow(() -> resourceManager.checkForLeaks());
            assertDoesNotThrow(() -> resourceManager.performCleanup());
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            assertNull(emptyOptional.orElse(null));
        }
    
        @Test
        public void test_ofNullable_multipleTypesInSequence() {
            // Test multiple different types in sequence to ensure type safety
            OptionalEntity<String> stringOpt = OptionalUtil.ofNullable("string");
            OptionalEntity<Integer> intOpt = OptionalUtil.ofNullable(42);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

          munch();
        }
      }
    
      private void munch() {
        Java8Compatibility.flip(buffer);
        while (buffer.remaining() >= chunkSize) {
          // we could limit the buffer to ensure process() does not read more than
          // chunkSize number of bytes, but we trust the implementations
          process(buffer);
        }
        buffer.compact(); // preserve any remaining data that do not make a full chunk
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            Field opCodeField = NameServicePacket.class.getDeclaredField("opCode");
            opCodeField.setAccessible(true);
            opCodeField.set(nameQueryResponse, 7); // WACK opCode, which is not QUERY (0)
    
            // Ensure 'resultCode' is 0 for this test to isolate opCode condition
            Field resultCodeField = NameServicePacket.class.getDeclaredField("resultCode");
            resultCodeField.setAccessible(true);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  5. internal/logger/target/kafka/kafka.go

    	sconfig.Net.TLS.Config.InsecureSkipVerify = h.kconfig.TLS.SkipVerify
    	sconfig.Net.TLS.Config.ClientAuth = h.kconfig.TLS.ClientAuth
    	sconfig.Net.TLS.Config.RootCAs = h.kconfig.TLS.RootCAs
    
    	// These settings are needed to ensure that kafka client doesn't hang on brokers
    	// refer https://github.com/IBM/sarama/issues/765#issuecomment-254333355
    	sconfig.Producer.Retry.Max = 2
    	sconfig.Producer.Retry.Backoff = (10 * time.Second)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/JAASAuthenticator.java

                }
    
                this.cachedSubject = s;
                return this.cachedSubject;
            } catch (LoginException e) {
                log.error("Failed to create login context", e);
                // Cache null to ensure consistent behavior across calls
                this.cachedSubject = null;
                return null;
            }
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.3K bytes
    - Click Count (1)
  7. internal/logger/logrotate.go

    	Directory string
    
    	// MaximumFileSize defines the maximum size of each log file in bytes.
    	MaximumFileSize int64
    
    	// FileNameFunc specifies the name a new file will take.
    	// FileNameFunc must ensure collisions in filenames do not occur.
    	// Do not rely on timestamps to be unique, high throughput writes
    	// may fall on the same timestamp.
    	// Eg.
    	// 	2020-03-28_15-00-945-<random-hash>.log
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

     *   <li>Events for the different listeners are dispatched concurrently.
     *   <li>All events for a given listener dispatch on the provided executor.
     *   <li>It is easy for the user to ensure that listeners are never invoked while holding locks.
     * </ul>
     *
     * The last point is subtle. Often the observable object will be managing its own internal state
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

         * One thread sets alive to false, other threads should see the change immediately.
         */
        @Test
        public void test_aliveField_volatileVisibility() throws Exception {
            // Ensure alive starts as true
            assertTrue(dataStore.alive);
    
            final int readerThreadCount = 5;
            final long testDurationMs = 200; // Run for 200ms
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (1)
  10. src/test/java/org/codelibs/fess/query/BooleanQueryCommandTest.java

            QueryBuilder result = booleanQueryCommand.execute(context, booleanQuery, 1.0f);
    
            assertNotNull(result);
            assertTrue(result instanceof BoolQueryBuilder);
        }
    
        // Test to ensure high coverage of edge cases
        @Test
        public void test_convertBooleanQuery_multipleShouldClauses() {
            BooleanQuery.Builder boolQueryBuilder = new BooleanQuery.Builder();
    
            // Add multiple SHOULD clauses
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.4K bytes
    - Click Count (0)
Back to Top