Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for assertSame (0.7 sec)

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

        sortedTable.put("", 42, 'x');
        assertSame(Ordering.natural(), sortedTable.columnComparator());
        assertSame(
            Ordering.natural(),
            ((SortedMap<Integer, Character>) sortedTable.rowMap().values().iterator().next())
                .comparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        sortedTable.put("", 42, 'x');
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(EntryFactory.STRONG, EntryFactory.getFactory(Strength.STRONG, false, false));
        assertSame(EntryFactory.STRONG_ACCESS, EntryFactory.getFactory(Strength.STRONG, true, false));
        assertSame(EntryFactory.STRONG_WRITE, EntryFactory.getFactory(Strength.STRONG, false, true));
        assertSame(
            EntryFactory.STRONG_ACCESS_WRITE, EntryFactory.getFactory(Strength.STRONG, true, true));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(EntryFactory.STRONG, EntryFactory.getFactory(Strength.STRONG, false, false));
        assertSame(EntryFactory.STRONG_ACCESS, EntryFactory.getFactory(Strength.STRONG, true, false));
        assertSame(EntryFactory.STRONG_WRITE, EntryFactory.getFactory(Strength.STRONG, false, true));
        assertSame(
            EntryFactory.STRONG_ACCESS_WRITE, EntryFactory.getFactory(Strength.STRONG, true, true));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertSame(copy, ImmutableSortedMap.copyOf(copy));
        assertSame(Ordering.natural(), copy.comparator());
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableSortedMap<String, Integer> copy =
            ImmutableSortedMap.copyOf(Collections.singletonMap("one", 1));
        assertMapEquals(copy, "one", 1);
        assertSame(copy, ImmutableSortedMap.copyOf(copy));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        sortedTable.put("", 42, 'x');
        assertSame(Ordering.natural(), sortedTable.columnComparator());
        assertSame(
            Ordering.natural(),
            ((SortedMap<Integer, Character>) sortedTable.rowMap().values().iterator().next())
                .comparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        sortedTable.put("", 42, 'x');
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = of("a");
        assertEquals(Collections.singleton("a"), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_sameType() {
        Collection<String> c = of("a", "b", "c");
        assertSame(c, copyOf(c));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = of("a");
        assertEquals(Collections.singleton("a"), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_sameType() {
        Collection<String> c = of("a", "b", "c");
        assertSame(c, copyOf(c));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TransposedTableTest.java

        original.put(1, "foo", 'a');
        assertSame(original.columnKeySet(), transpose.rowKeySet());
        assertSame(original.rowKeySet(), transpose.columnKeySet());
        assertSame(original.columnMap(), transpose.rowMap());
        assertSame(original.rowMap(), transpose.columnMap());
        assertSame(original.values(), transpose.values());
        assertEquals(original.row(1), transpose.column(1));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      public void testEmpty_comparator() {
        SortedSet<String> set = of();
        assertSame(Ordering.natural(), set.comparator());
      }
    
      public void testEmpty_headSet() {
        SortedSet<String> set = of();
        assertSame(set, set.headSet("c"));
      }
    
      public void testEmpty_tailSet() {
        SortedSet<String> set = of();
        assertSame(set, set.tailSet("f"));
      }
    
      public void testEmpty_subSet() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CloserTest.java

        try {
          try {
            throw exception;
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        } catch (Throwable expected) {
          assertSame(exception, expected);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
    
        assertTrue(suppressor.suppressions.isEmpty());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top