Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for assertSame (0.21 sec)

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

        for (Entry<Object, Object> entry : result.entrySet()) {
          Object key = entry.getKey();
          Object value = entry.getValue();
          assertSame(value, result.get(key));
          assertNull(result.get(value));
          assertSame(value, cache.asMap().get(key));
          assertSame(key, cache.asMap().get(value));
        }
      }
    
      public void testBulkLoad_clobber() throws ExecutionException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        for (Entry<Object, Object> entry : result.entrySet()) {
          Object key = entry.getKey();
          Object value = entry.getValue();
          assertSame(value, result.get(key));
          assertNull(result.get(value));
          assertSame(value, cache.asMap().get(key));
          assertSame(key, cache.asMap().get(value));
        }
      }
    
      public void testBulkLoad_clobber() throws ExecutionException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator();
        UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Iterators.unmodifiableIterator(unmod));
        assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));
      }
    
      @SuppressWarnings("deprecation")
      public void testPeekingIteratorShortCircuit() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
        assertSame(copy.comparator(), map.comparator());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
        assertSame(copy.comparator(), map.comparator());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator();
        UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Iterators.unmodifiableIterator(unmod));
        assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));
      }
    
      @SuppressWarnings("deprecation")
      public void testPeekingIteratorShortCircuit() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(type.isPrimitive());
        assertSame(type, type.wrap());
      }
    
      private static void assertIsWrapper(TypeToken<?> type) {
        assertNotPrimitive(type);
        assertEquals(TypeToken.of(Primitives.unwrap((Class<?>) type.getType())), type.unwrap());
      }
    
      private static void assertNotWrapper(TypeToken<?> type) {
        assertSame(type, type.unwrap());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(type.isPrimitive());
        assertSame(type, type.wrap());
      }
    
      private static void assertIsWrapper(TypeToken<?> type) {
        assertNotPrimitive(type);
        assertEquals(TypeToken.of(Primitives.unwrap((Class<?>) type.getType())), type.unwrap());
      }
    
      private static void assertNotWrapper(TypeToken<?> type) {
        assertSame(type, type.unwrap());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

    import static org.junit.jupiter.api.Assertions.assertNotEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    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;
    
    @PlexusTest
    class PomConstructionTest {
        private static String BASE_DIR = "src/test";
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SetsTest.java

       * same as the given comparator.
       */
      private static <E> void verifySortedSetContents(
          SortedSet<E> set, Iterable<E> iterable, @Nullable Comparator<E> comparator) {
        assertSame(comparator, set.comparator());
        verifySetContents(set, iterable);
      }
    
      /**
       * Utility method that verifies that the given set is equal to and hashes identically to a set
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
Back to top