Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 197 for isNull (0.03 sec)

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

        BiMap<Integer, Integer> bimap = HashBiMap.create(N);
        BiMap<Integer, Integer> inverse = bimap.inverse();
    
        for (int i = 0; i < N; i++) {
          assertThat(bimap.put(2 * i, 2 * i + 1)).isNull();
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * i + 1, (int) bimap.get(2 * i));
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * i, (int) inverse.get(2 * i + 1));
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstanceSuppliesNull() {
        Supplier<@Nullable Integer> nullSupplier = Suppliers.ofInstance(null);
        assertThat(nullSupplier.get()).isNull();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("DoNotCall")
      public void testExpiringMemoizedSupplierThreadSafe() throws Throwable {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstanceSuppliesNull() {
        Supplier<@Nullable Integer> nullSupplier = Suppliers.ofInstance(null);
        assertThat(nullSupplier.get()).isNull();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("DoNotCall")
      public void testExpiringMemoizedSupplierThreadSafe() throws Throwable {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          assertEquals(Integer.valueOf(0), defaultConverter.convert("anything"));
          assertEquals("", defaultConverter.reverse().convert(123));
          assertThat(defaultConverter.convert(null)).isNull();
          assertThat(defaultConverter.reverse().convert(null)).isNull();
        }
      }
    
      public void testConverterDefaultValue() {
        new ConverterDefaultValueChecker().check();
      }
    
      private static class VisibilityMethods {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        underlying.put("a", 1);
        Map<String, String> map = transformValues(underlying, Functions.toStringFunction());
        assertEquals("1", map.remove("a"));
        assertThat(map.remove("b")).isNull();
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = new HashMap<>();
        underlying.put("a", null);
        underlying.put("b", "");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testGetOnlyElement_withDefault_empty_null() {
        Iterator<String> iterator = emptyIterator();
        assertThat(Iterators.<@Nullable String>getOnlyElement(iterator, null)).isNull();
      }
    
      public void testGetOnlyElement_withDefault_two() {
        Iterator<String> iterator = asList("foo", "bar").iterator();
        IllegalArgumentException expected =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 56.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        underlying.put("a", 1);
        Map<String, String> map = transformValues(underlying, Functions.toStringFunction());
        assertEquals("1", map.remove("a"));
        assertThat(map.remove("b")).isNull();
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = new HashMap<>();
        underlying.put("a", null);
        underlying.put("b", "");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CloserTest.java

          }
        } catch (Throwable expected) {
          assertThat(expected).isInstanceOf(IOException.class);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
        assertThat(c3).isNull();
    
        assertTrue(suppressor.suppressions.isEmpty());
      }
    
      public void testExceptionThrown_whileClosingLastCloseable() throws IOException {
        Closer closer = new Closer(suppressor);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

      @Override
      protected final void tearDown() {
        tearDownStack.runTearDown();
        assertWithMessage("exceptions should not be propagated to uncaught exception handlers")
            .that(thrownByExecutionThread)
            .isNull();
      }
    
      public void testServiceStartStop() throws Exception {
        WaitOnRunService service = new WaitOnRunService();
        assertFalse(service.startUpCalled);
    
        service.startAsync().awaitRunning();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JsonExtractor.java

         */
        protected void extractValue(final JsonNode node, final String key, final StringBuilder textBuilder,
                final Map<String, List<String>> metadataMap, final int depth) {
            if (node.isNull()) {
                return;
            }
    
            final String value = node.asText();
            if (StringUtil.isBlank(value)) {
                return;
            }
    
            // Add to text content
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 03:46:53 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top