Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for assertNotSame (0.08 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    class MavenProjectTest extends AbstractMavenProjectTestCase {
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 28 09:44:37 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testUnmodifiableListMultimapShortCircuit() {
        ListMultimap<String, Integer> mod = ArrayListMultimap.create();
        ListMultimap<String, Integer> unmod = Multimaps.unmodifiableListMultimap(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Multimaps.unmodifiableListMultimap(unmod));
        ImmutableListMultimap<String, Integer> immutable =
            ImmutableListMultimap.of("a", 1, "b", 2, "a", 3);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

      }
    
      public void testAsWriter() {
        // Should wrap Appendable in a new object
        Appendable plainAppendable = new StringBuilder();
        Writer result = CharStreams.asWriter(plainAppendable);
        assertNotSame(plainAppendable, result);
        assertThat(result).isNotNull();
    
        // A Writer should not be wrapped
        Appendable secretlyAWriter = new StringWriter();
        result = CharStreams.asWriter(secretlyAWriter);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/io/CharStreamsTest.java

      }
    
      public void testAsWriter() {
        // Should wrap Appendable in a new object
        Appendable plainAppendable = new StringBuilder();
        Writer result = CharStreams.asWriter(plainAppendable);
        assertNotSame(plainAppendable, result);
        assertThat(result).isNotNull();
    
        // A Writer should not be wrapped
        Appendable secretlyAWriter = new StringWriter();
        result = CharStreams.asWriter(secretlyAWriter);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/base/FunctionsTest.java

        assertThat(identity.apply(null)).isNull();
        assertSame("foo", identity.apply("foo"));
      }
    
      public void testIdentity_notSame() {
        Function<Long, Long> identity = Functions.identity();
        assertNotSame(new Long(135135L), identity.apply(new Long(135135L)));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testIdentitySerializable() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        assertThat(identity.apply(null)).isNull();
        assertSame("foo", identity.apply("foo"));
      }
    
      public void testIdentity_notSame() {
        Function<Long, Long> identity = Functions.identity();
        assertNotSame(new Long(135135L), identity.apply(new Long(135135L)));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testIdentitySerializable() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

        EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class);
        EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original);
        assertEquals(original, copy);
        assertNotSame(original, copy);
      }
    
      public void testEnumMapWithInitialMap() {
        HashMap<SomeEnum, Integer> original = new HashMap<>();
        original.put(SomeEnum.SOME_INSTANCE, 0);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

          Object instance = ArbitraryInstances.get(mutableClass);
          assertWithMessage("Expected to return non-null for: %s", mutableClass)
              .that(instance)
              .isNotNull();
          assertNotSame(
              "Expected to return fresh instance for: " + mutableClass,
              instance,
              ArbitraryInstances.get(mutableClass));
        }
      }
    
      private enum EmptyEnum {}
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testLeastOfIterable_ties() {
        Integer foo = new Integer(Integer.MAX_VALUE - 10);
        Integer bar = new Integer(Integer.MAX_VALUE - 10);
    
        assertNotSame(foo, bar);
        assertEquals(foo, bar);
    
        List<Integer> list = asList(3, foo, bar, -1);
        List<Integer> result = numberOrdering.leastOf(list, list.size());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      public void testLeastOfIterable_ties() {
        Integer foo = new Integer(Integer.MAX_VALUE - 10);
        Integer bar = new Integer(Integer.MAX_VALUE - 10);
    
        assertNotSame(foo, bar);
        assertEquals(foo, bar);
    
        List<Integer> list = asList(3, foo, bar, -1);
        List<Integer> result = numberOrdering.leastOf(list, list.size());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
Back to Top