Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for isSameInstanceAs (0.15 sec)

  1. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

              }
            };
    
        assertThat(cache.getIfPresent(new Object())).isNull();
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertThat(cache.getIfPresent(new Object())).isSameInstanceAs(newValue);
      }
    
      public void testGetAllPresent_empty() {
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        awaitBlockedOnInstanceOf(runner, InterruptibleTask.Blocker.class);
    
        Blocker blocker = (Blocker) LockSupport.getBlocker(runner);
        Thread owner = blocker.getOwner();
        assertThat(owner).isSameInstanceAs(interrupter);
    
        slowChannel.exitClose.countDown(); // release the interrupter
    
        // We need to wait for the runner to exit.  To make sure that the interrupting thread wakes it
        // back up.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        ExecutionException ee = assertThrows(ExecutionException.class, () -> future.get());
        assertThat(ee).hasCauseThat().isSameInstanceAs(e);
      }
    
      public void testSetFuture() throws Exception {
        SettableFuture<String> future = SettableFuture.create();
        SettableFuture<String> nested = SettableFuture.create();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 17:49:12 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        ExecutionException ee = assertThrows(ExecutionException.class, () -> future.get());
        assertThat(ee).hasCauseThat().isSameInstanceAs(e);
      }
    
      public void testSetFuture() throws Exception {
        SettableFuture<String> future = SettableFuture.create();
        SettableFuture<String> nested = SettableFuture.create();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 17:49:12 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

      public void testLexicographicalComparatorSerializable() {
        Comparator<byte[]> comparator = SignedBytes.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testSortDescending() {
        testSortDescending(new byte[] {}, new byte[] {});
        testSortDescending(new byte[] {1}, new byte[] {1});
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/CaseFormatTest.java

    @NullUnmarked
    public class CaseFormatTest extends TestCase {
    
      public void testIdentity() {
        for (CaseFormat from : CaseFormat.values()) {
          assertWithMessage("%s to %s", from, from).that(from.to(from, "foo")).isSameInstanceAs("foo");
          for (CaseFormat to : CaseFormat.values()) {
            assertWithMessage("%s to %s", from, to).that(from.to(to, "")).isEmpty();
            assertWithMessage("%s to %s", from, to).that(from.to(to, " ")).isEqualTo(" ");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

        assertGoodFeatureEnum(ExampleFeature.class);
      }
    
      public void testAddImpliedFeatures_returnsSameSetInstance() {
        Set<Feature<?>> features = newHashSet(FOO);
        assertThat(addImpliedFeatures(features)).isSameInstanceAs(features);
      }
    
      public void testAddImpliedFeatures_addsImpliedFeatures() {
        assertThat(addImpliedFeatures(newHashSet(FOO))).containsExactly(FOO);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/CaseFormatTest.java

    @NullUnmarked
    public class CaseFormatTest extends TestCase {
    
      public void testIdentity() {
        for (CaseFormat from : CaseFormat.values()) {
          assertWithMessage("%s to %s", from, from).that(from.to(from, "foo")).isSameInstanceAs("foo");
          for (CaseFormat to : CaseFormat.values()) {
            assertWithMessage("%s to %s", from, to).that(from.to(to, "")).isEmpty();
            assertWithMessage("%s to %s", from, to).that(from.to(to, " ")).isEqualTo(" ");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        // The object that we will wrap in FinalizableWeakReference is a Stopwatch.
        Class<?> sepStopwatchC = sepLoader.loadClass(Stopwatch.class.getName());
        assertThat(sepLoader).isSameInstanceAs(sepStopwatchC.getClassLoader());
        AtomicReference<Object> sepStopwatchA =
            new AtomicReference<Object>(sepStopwatchC.getMethod("createUnstarted").invoke(null));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

        assertGoodFeatureEnum(ExampleFeature.class);
      }
    
      public void testAddImpliedFeatures_returnsSameSetInstance() {
        Set<Feature<?>> features = newHashSet(FOO);
        assertThat(addImpliedFeatures(features)).isSameInstanceAs(features);
      }
    
      public void testAddImpliedFeatures_addsImpliedFeatures() {
        assertThat(addImpliedFeatures(newHashSet(FOO))).containsExactly(FOO);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 11.6K bytes
    - Viewed (0)
Back to top