Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 46 for isNotNull (0.23 seconds)

  1. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertThat(ArbitraryInstances.get(CharMatcher.class)).isNotNull();
        assertThat(ArbitraryInstances.get(Currency.class).getCurrencyCode()).isNotNull();
        assertThat(ArbitraryInstances.get(Locale.class)).isNotNull();
        assertThat(ArbitraryInstances.get(Joiner.class).join(ImmutableList.of("a"))).isNotNull();
        assertThat(ArbitraryInstances.get(Splitter.class).split("a,b")).isNotNull();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertThat(ArbitraryInstances.get(CharMatcher.class)).isNotNull();
        assertThat(ArbitraryInstances.get(Currency.class).getCurrencyCode()).isNotNull();
        assertThat(ArbitraryInstances.get(Locale.class)).isNotNull();
        assertThat(ArbitraryInstances.get(Joiner.class).join(ImmutableList.of("a"))).isNotNull();
        assertThat(ArbitraryInstances.get(Splitter.class).split("a,b")).isNotNull();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ResourcesTest.java

        assertThat(e).hasMessageThat().isEqualTo("resource no such resource not found.");
      }
    
      public void testGetResource() {
        assertThat(Resources.getResource("com/google/common/io/testdata/i18n.txt")).isNotNull();
      }
    
      public void testGetResource_relativePath_notFound() {
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

              }
            };
    
        Class<?> finalizerCopy = decoupledLoader.loadFinalizer();
    
        assertThat(finalizerCopy).isNotNull();
        assertThat(finalizerCopy).isNotEqualTo(Finalizer.class);
    
        assertThat(FinalizableReferenceQueue.getStartFinalizer(finalizerCopy)).isNotNull();
      }
    
      static class DecoupledClassLoader extends URLClassLoader {
    
        public DecoupledClassLoader(URL[] urls) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Feb 27 21:20:19 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        assertThat(e).hasMessageThat().isEqualTo("resource no such resource not found.");
      }
    
      public void testGetResource() {
        assertThat(Resources.getResource("com/google/common/io/testdata/i18n.txt")).isNotNull();
      }
    
      public void testGetResource_relativePath_notFound() {
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        assertTrue(future.isDone());
        assertThat(tryInternalFastPathGetFailure(future)).isNull();
        CancellationException e = assertThrows(CancellationException.class, future::get);
        assertThat(e.getCause()).isNotNull();
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(true));
        assertTrue(future.isCancelled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        assertTrue(future.isDone());
        assertThat(tryInternalFastPathGetFailure(future)).isNull();
        CancellationException e = assertThrows(CancellationException.class, future::get);
        assertThat(e.getCause()).isNotNull();
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(true));
        assertTrue(future.isCancelled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

              }
            });
    
        CacheTesting.checkEmpty(cache);
        for (RemovalNotification<String, String> entry : notifications) {
          assertThat(entry.getKey()).isNotNull();
          assertThat(entry.getValue()).isNotNull();
        }
      }
    
      public void testComputeExceptionally() {
        assertThrows(
            RuntimeException.class,
            () ->
                doParallelCacheOp(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertThat(staticMethodWithLocalClass()).isNotNull();
      }
    
      public void testLocalClassInsideNonStaticMethod() {
        class MyLocalClass<T> {
          Type getType() {
            return new TypeToken<T>(getClass()) {}.getType();
          }
        }
        assertThat(new MyLocalClass<String>().getType()).isNotNull();
      }
    
      private static <T> Type staticMethodWithAnonymousClass() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertThat(staticMethodWithLocalClass()).isNotNull();
      }
    
      public void testLocalClassInsideNonStaticMethod() {
        class MyLocalClass<T> {
          Type getType() {
            return new TypeToken<T>(getClass()) {}.getType();
          }
        }
        assertThat(new MyLocalClass<String>().getType()).isNotNull();
      }
    
      private static <T> Type staticMethodWithAnonymousClass() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
Back to Top