Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1071 - 1080 of 1,141 for assertTrue (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        /*
         * Maybe it rejects all elements, or maybe it adds "a" before failing.
         * Either way is fine with us.
         */
        if (result.isEmpty()) {
          return;
        }
        assertTrue(ImmutableList.of("a").equals(result));
        assertEquals(1, result.size());
      }
    
      public void testBuilderAddCollectionHandlesNulls() {
        List<@Nullable String> elements = asList("a", null, "b");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDCacheImplTest.java

    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.ArgumentMatchers.isNull;
    import static org.mockito.ArgumentMatchers.same;
    import static org.mockito.Mockito.doAnswer;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

    package org.codelibs.fess.suggest;
    
    import static org.codelibs.opensearch.runner.OpenSearchRunner.newConfigs;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertFalse;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import java.time.ZonedDateTime;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 37.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

    import static java.util.Collections.singleton;
    import static java.util.Collections.unmodifiableList;
    import static junit.framework.TestCase.assertEquals;
    import static junit.framework.TestCase.assertTrue;
    import static junit.framework.TestCase.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ArrayListMultimap;
    import com.google.common.collect.LinkedHashMultiset;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        }
    
        /* Read in various values in LITTLE ENDIAN FORMAT */
        byte[] b = new byte[2];
        in.readFully(b);
        assertEquals(-100, b[0]);
        assertEquals(100, b[1]);
        assertTrue(in.readBoolean());
        assertFalse(in.readBoolean());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

      }
    
      public void testRemoveUnsupported() {
        Multiset<String> multiset = new NoRemoveMultiset<>();
        multiset.add("a");
        assertThrows(UnsupportedOperationException.class, () -> multiset.remove("a"));
        assertTrue(multiset.contains("a"));
      }
    
      private static class NoRemoveMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
          implements Serializable {
        final Map<E, Integer> backingMap = new HashMap<>();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

        registry.register(s1);
        registry.register(s2);
    
        registry.unregister(s1);
        assertEquals(1, registry.getSubscribersForTesting(String.class).size());
    
        registry.unregister(s2);
        assertTrue(registry.getSubscribersForTesting(String.class).isEmpty());
      }
    
      public void testUnregister_notRegistered() {
        assertThrows(IllegalArgumentException.class, () -> registry.unregister(new StringSubscriber()));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      }
    
      private void expectReturnsTrue(Target target) {
        String message = Platform.format("retainAll(%s) should return true", target);
        assertTrue(message, collection.retainAll(target.toRetain));
      }
    
      private void expectReturnsFalse(Target target) {
        String message = Platform.format("retainAll(%s) should return false", target);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

                ? unmodifiableIterable(concurrentlyMutatedList)
                : concurrentlyMutatedList;
    
        ImmutableList<Integer> copyOfIterable = ImmutableList.copyOf(iterableToCopy);
    
        assertTrue(concurrentlyMutatedList.getAllStates().contains(copyOfIterable));
      }
    
      private static void runConcurrentlyMutatedTest(WrapWithIterable wrap) {
        /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertTrue(context instanceof NegotiateContextRequest);
            }
    
            @Test
            @DisplayName("Should implement NegotiateContextResponse interface")
            void testImplementsNegotiateContextResponse() {
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext();
    
                assertTrue(context instanceof NegotiateContextResponse);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
Back to top