Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 134 for assertSame (0.11 sec)

  1. android/guava-tests/test/com/google/common/base/AsciiTest.java

      public void testToLowerCase() {
        assertEquals(LOWER, Ascii.toLowerCase(UPPER));
        assertSame(LOWER, Ascii.toLowerCase(LOWER));
        assertEquals(IGNORED, Ascii.toLowerCase(IGNORED));
        assertEquals("foobar", Ascii.toLowerCase("fOobaR"));
      }
    
      public void testToUpperCase() {
        assertEquals(UPPER, Ascii.toUpperCase(LOWER));
        assertSame(UPPER, Ascii.toUpperCase(UPPER));
        assertEquals(IGNORED, Ascii.toUpperCase(IGNORED));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testAllEqual() {
        Ordering<@Nullable Object> comparator = Ordering.allEqual();
        assertSame(comparator, comparator.reverse());
    
        assertEquals(0, comparator.compare(null, null));
        assertEquals(0, comparator.compare(new Object(), new Object()));
        assertEquals(0, comparator.compare("apples", "oranges"));
        assertSame(comparator, reserialize(comparator));
        assertEquals("Ordering.allEqual()", comparator.toString());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testAllEqual() {
        Ordering<@Nullable Object> comparator = Ordering.allEqual();
        assertSame(comparator, comparator.reverse());
    
        assertEquals(0, comparator.compare(null, null));
        assertEquals(0, comparator.compare(new Object(), new Object()));
        assertEquals(0, comparator.compare("apples", "oranges"));
        assertSame(comparator, reserialize(comparator));
        assertEquals("Ordering.allEqual()", comparator.toString());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/HashMultisetTest.java

        Multiset<Multiset<?>> multiset = HashMultiset.create();
        multiset.add(multiset, 2);
        Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        public Multiset<?> member;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<String> c = ImmutableList.of();
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableList.of("a");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableList() {
        Collection<String> c = ImmutableList.of("a", "b", "c");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

      }
    
      public void testGet_class() {
        assertSame(SomeAbstractClass.INSTANCE, ArbitraryInstances.get(SomeAbstractClass.class));
        assertSame(
            WithPrivateConstructor.INSTANCE, ArbitraryInstances.get(WithPrivateConstructor.class));
        assertNull(ArbitraryInstances.get(NoDefaultConstructor.class));
        assertSame(
            WithExceptionalConstructor.INSTANCE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableMultiset.of("a");
        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableMultiset() {
        Collection<String> c = ImmutableMultiset.of("a", "b", "c");
        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstanceSuppliesSameInstance() {
        Object toBeSupplied = new Object();
        Supplier<Object> objectSupplier = Suppliers.ofInstance(toBeSupplied);
        assertSame(toBeSupplied, objectSupplier.get());
        assertSame(toBeSupplied, objectSupplier.get()); // idempotent
      }
    
      public void testOfInstanceSuppliesNull() {
        Supplier<@Nullable Integer> nullSupplier = Suppliers.ofInstance(null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstanceSuppliesSameInstance() {
        Object toBeSupplied = new Object();
        Supplier<Object> objectSupplier = Suppliers.ofInstance(toBeSupplied);
        assertSame(toBeSupplied, objectSupplier.get());
        assertSame(toBeSupplied, objectSupplier.get()); // idempotent
      }
    
      public void testOfInstanceSuppliesNull() {
        Supplier<@Nullable Integer> nullSupplier = Suppliers.ofInstance(null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        Multiset<Multiset<?>> multiset = HashMultiset.create();
        multiset.add(multiset, 2);
        Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Only used by @GwtIncompatible code
      private static class MultisetHolder implements Serializable {
        public Multiset<?> member;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top