Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2161 - 2170 of 3,933 for avoid (0.01 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java

    public class SetCreationTester<E> extends AbstractSetTester<E> {
      @CollectionFeature.Require(value = ALLOWS_NULL_VALUES, absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates_nullDuplicatesNotRejected() {
        E[] array = createArrayWithNullElement();
        array[0] = null;
        collection = getSubjectGenerator().create(array);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

      public MockFutureListener(ListenableFuture<?> future) {
        this.countDownLatch = new CountDownLatch(1);
        this.future = future;
    
        future.addListener(this, directExecutor());
      }
    
      @Override
      public void run() {
        countDownLatch.countDown();
      }
    
      /**
       * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
       * returns the expected data.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSetValueNullUnsupported() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          assertThrows(NullPointerException.class, () -> entry.setValue(null));
          expectUnchanged();
        }
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testSetValueNullSupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

              .immutableCopy();
    
      private double[] dataset;
    
      @Override
      protected void setUp() {
        dataset = new double[DATASET_SIZE];
        for (int i = 0; i < DATASET_SIZE; i++) {
          dataset[i] = rng.nextDouble();
        }
      }
    
      public void testSingleQuantile_median() {
        double referenceValue = REFERENCE_ALGORITHM.singleQuantile(1, 2, dataset.clone());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseStateTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for DirectoryLeaseState
     */
    public class DirectoryLeaseStateTest {
    
        @Test
        public void testDirectoryLeaseConstants() {
            // Test that directory lease states use correct base values
            assertEquals(Smb2LeaseState.SMB2_LEASE_READ_CACHING | Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.dcerpc.rpc.sid_t;
    import jcifs.smb.SID;
    
    class LsarSidArrayXTest {
    
        @Test
        void testConstructorWithJcifsSIDArrayAndUnwrap() {
            // Create mock SID objects
            SID mockSid1 = mock(SID.class);
            SID mockSid2 = mock(SID.class);
    
            // Mock the unwrap method to return a sid_t instance
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

        } else {
          return null;
        }
      }
    
      @Override
      public void put(Range<K> range, V value) {
        if (!range.isEmpty()) {
          checkNotNull(value);
          remove(range);
          entriesByLowerBound.put(range.lowerBound, new RangeMapEntry<K, V>(range, value));
        }
      }
    
      @Override
      public void putCoalescing(Range<K> range, V value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractConditionAggregation.java

        protected void checkEsInvalidAggregation(String name, Object value) {
            if (value == null || (value instanceof String && ((String) value).isEmpty())) {
                String msg = "Cannot register null or empty aggregation: name=" + name + " value=" + value;
                throw new InvalidQueryRegisteredException(msg);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

        /**
         * Deletes all bad words from the suggest index.
         */
        protected void deleteAllBadWords() {
            suggester.settings().badword().deleteAll();
        }
    
        /**
         * Stores all bad words in the suggest index.
         *
         * @param apply true to apply the changes immediately.
         */
        public void storeAllBadWords(final boolean apply) {
            deleteAllBadWords();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

        }
    
        @BeforeEach
        void setUp() {
            message = new TestNtlmMessage();
        }
    
        @Test
        void testGetAndSetFlags() {
            // Test setting and getting flags
            int testFlags = 0x12345678;
            message.setFlags(testFlags);
            assertEquals(testFlags, message.getFlags(), "Flags should be set and retrieved correctly.");
        }
    
        @Test
        void testGetFlag() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top