Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 47 for isNotSameInstanceAs (0.15 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      public void testSerialization() throws Exception {
        AtomicDouble a = new AtomicDouble();
        AtomicDouble b = serialClone(a);
        assertThat(b).isNotSameInstanceAs(a);
        a.set(-22.0);
        AtomicDouble c = serialClone(a);
        assertThat(c).isNotSameInstanceAs(b);
        assertBitEquals(-22.0, a.get());
        assertBitEquals(0.0, b.get());
        assertBitEquals(-22.0, c.get());
        for (double x : VALUES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        assertThat(lowerCase).isNotSameInstanceAs(base16());
        assertThat(lowerCase).isSameInstanceAs(base16().lowerCase());
        testEncodingWithCasing(lowerCase, "foobar", "666f6f626172");
      }
    
      public void testBase16IgnoreCase() {
        BaseEncoding ignoreCase = base16().ignoreCase();
        assertThat(ignoreCase).isNotSameInstanceAs(base16());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      public void testSerialization() throws Exception {
        AtomicDouble a = new AtomicDouble();
        AtomicDouble b = serialClone(a);
        assertThat(b).isNotSameInstanceAs(a);
        a.set(-22.0);
        AtomicDouble c = serialClone(a);
        assertThat(c).isNotSameInstanceAs(b);
        assertBitEquals(-22.0, a.get());
        assertBitEquals(0.0, b.get());
        assertBitEquals(-22.0, c.get());
        for (double x : VALUES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  4. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

    public class SerializableTesterTest extends TestCase {
      public void testStringAssertions() {
        String original = "hello world";
        String copy = SerializableTester.reserializeAndAssert(original);
        assertThat(copy).isNotSameInstanceAs(original);
      }
    
      public void testClassWhichDoesNotImplementEquals() {
        ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals();
        boolean errorNotThrown = false;
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  5. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

    public class SerializableTesterTest extends TestCase {
      public void testStringAssertions() {
        String original = "hello world";
        String copy = SerializableTester.reserializeAndAssert(original);
        assertThat(copy).isNotSameInstanceAs(original);
      }
    
      public void testClassWhichDoesNotImplementEquals() {
        ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals();
        boolean errorNotThrown = false;
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        // fail and will need to be rewritten.
    
        Class<?> frqC = FinalizableReferenceQueue.class;
        Class<?> sepFrqC = sepLoader.loadClass(frqC.getName());
        assertThat(frqC).isNotSameInstanceAs(sepFrqC);
        // Check the assumptions above.
    
        // FRQ tries to load the Finalizer class (for the reference-collecting thread) in a few ways.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 26 02:41:17 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

      }
    
      public void testImpliedFeatures_returnsNewSetInstance() {
        Set<Feature<?>> features = newHashSet(IMPLIES_FOO);
        assertThat(impliedFeatures(features)).isNotSameInstanceAs(features);
      }
    
      public void testImpliedFeatures_returnsImpliedFeatures() {
        assertThat(impliedFeatures(newHashSet(FOO))).isEmpty();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        // fail and will need to be rewritten.
    
        Class<?> frqC = FinalizableReferenceQueue.class;
        Class<?> sepFrqC = sepLoader.loadClass(frqC.getName());
        assertThat(frqC).isNotSameInstanceAs(sepFrqC);
        // Check the assumptions above.
    
        // FRQ tries to load the Finalizer class (for the reference-collecting thread) in a few ways.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 26 02:41:17 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        ListMultimap<String, Integer> mod = ArrayListMultimap.create();
        ListMultimap<String, Integer> unmod = Multimaps.unmodifiableListMultimap(mod);
        assertThat(unmod).isNotSameInstanceAs(mod);
        assertThat(Multimaps.unmodifiableListMultimap(unmod)).isSameInstanceAs(unmod);
        ImmutableListMultimap<String, Integer> immutable =
            ImmutableListMultimap.of("a", 1, "b", 2, "a", 3);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      }
    
      public void testCopyOf_copiesImmutableSortedSet() {
        ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a");
        ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet);
        assertThat(copy).isNotSameInstanceAs(sortedSet);
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSet once CollectorTester is usable to java7.
      public void testToImmutableSet_java7() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 14.1K bytes
    - Click Count (0)
Back to Top