Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 224 for assertNull (0.07 sec)

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

        Map<String, Integer> underlying = Maps.newHashMap();
        underlying.put("a", 1);
        Map<String, String> map = transformValues(underlying, Functions.toStringFunction());
        assertEquals("1", map.remove("a"));
        assertNull(map.remove("b"));
      }
    
      public void testTransformEqualityOfMapsWithNullValues() {
        Map<String, @Nullable String> underlying = Maps.newHashMap();
        underlying.put("a", null);
        underlying.put("b", "");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      /** Checks that #drain() invocations behave correctly for a drained (empty) queue. */
      private void assertDrained(BlockingQueue<Object> q) {
        assertNull(q.peek());
        assertInterruptibleDrained(q);
        assertUninterruptibleDrained(q);
      }
    
      private void assertInterruptibleDrained(BlockingQueue<Object> q) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

                    }
                  });
              executionThread.start();
            }
          };
    
      @Override
      protected final void tearDown() {
        tearDownStack.runTearDown();
        assertNull(
            "exceptions should not be propagated to uncaught exception handlers",
            thrownByExecutionThread);
      }
    
      public void testServiceStartStop() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

            final DocList docList = new DocList();
            indexingHelper.sendDocuments(client, docList);
            assertEquals(0, docList.size());
            assertEquals(0, sentDocList.size());
            assertNull(sentIndex.get());
    
            sentIndex.set(null);
            sentDocList.clear();
            docList.add(new HashMap<>(Map.of(//
                    "_id", "001", //
                    "config_id", "W01", //
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(bimap1, bimap2);
        bimap2.inverse().put(Country.SWITZERLAND, Currency.FRANC);
        assertEquals(Country.SWITZERLAND, bimap2.get(Currency.FRANC));
        assertNull(bimap1.get(Currency.FRANC));
        assertFalse(bimap2.equals(bimap1));
    
        /* Test that it can be empty. */
        EnumBiMap<Currency, Country> emptyBimap = EnumBiMap.create(Currency.class, Country.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java

            accessResultDataImpl.setEncoding(Constants.UTF_8);
            accessResultDataImpl.setTransformerName("htmlTransformer");
    
            final Object obj = htmlTransformer.getData(accessResultDataImpl);
            assertNull(obj);
        }
    
        public void test_isValidPath_valid() {
            String value;
    
            value = "hoge.html";
            assertTrue(htmlTransformer.isValidPath(value));
    
            value = "./hoge.html";
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertEquals(multimap.hashCode(), unmodifiable.hashCode());
        assertEquals(multimap, unmodifiable);
    
        assertThat(unmodifiable.asMap().get("bar")).containsExactly(5, -1);
        assertNull(unmodifiable.asMap().get("missing"));
    
        assertFalse(unmodifiable.entries() instanceof Serializable);
      }
    
      /** Prepares the multimap for unmodifiable tests, returning an unmodifiable view of the map. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                mapEntry("three", 3),
                mapEntry("two", 2));
      }
    
      // Non-creation tests
    
      public void testNullGet() {
        ImmutableMap<String, Integer> map = ImmutableMap.of("one", 1);
        assertNull(map.get(null));
      }
    
      public void testAsMultimap() {
        ImmutableMap<String, Integer> map =
            ImmutableMap.of("one", 1, "won", 1, "two", 2, "too", 2, "three", 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

              }
            }
    
            try {
              assertEquals(expected, rangeMap.span());
              assertNotNull(expected);
            } catch (NoSuchElementException e) {
              assertNull(expected);
            }
          }
        }
      }
    
      public void testAllRangesAlone() {
        for (Range<Integer> range : RANGES) {
          Map<Integer, Integer> model = Maps.newHashMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        boolean hung =
            !awaitUninterruptibly(callCompletedLatch, hangDelayMillis, TimeUnit.MILLISECONDS);
        if (hung) {
          assertEquals(expectedOutcome, Outcome.HANG);
        } else {
          assertNull(task.get(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
        }
      }
    
      @Override
      protected void tearDown() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top