Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for assertSame (0.16 sec)

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

      public void testStrong_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Interner<String> pool = Interners.newStrongInterner();
        assertSame(canonical, pool.intern(canonical));
        assertSame(canonical, pool.intern(not));
      }
    
      public void testStrong_null() {
        Interner<String> pool = Interners.newStrongInterner();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
        final RuntimeException cause = new RuntimeException();
        final AtomicReference<Object> valueRef = new AtomicReference<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/FunnelsTest.java

      }
    
      public void testSerialization() {
        assertSame(
            Funnels.byteArrayFunnel(), SerializableTester.reserialize(Funnels.byteArrayFunnel()));
        assertSame(Funnels.integerFunnel(), SerializableTester.reserialize(Funnels.integerFunnel()));
        assertSame(Funnels.longFunnel(), SerializableTester.reserialize(Funnels.longFunnel()));
        assertSame(
            Funnels.unencodedCharsFunnel(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/NullCacheTest.java

                .build(constantLoader(computed));
    
        Object key = new Object();
        assertSame(computed, cache.getUnchecked(key));
        RemovalNotification<Object, Object> notification = listener.remove();
        assertSame(key, notification.getKey());
        assertSame(computed, notification.getValue());
        assertSame(RemovalCause.SIZE, notification.getCause());
        assertTrue(listener.isEmpty());
        checkEmpty(cache);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static class BiMapPair<K, V> implements Serializable {
        final BiMap<K, V> forward;
        final BiMap<V, K> backward;
    
        BiMapPair(BiMap<K, V> original) {
          this.forward = original;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static class BiMapPair<K, V> implements Serializable {
        final BiMap<K, V> forward;
        final BiMap<V, K> backward;
    
        BiMapPair(BiMap<K, V> original) {
          this.forward = original;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    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
    @ExtendWith(MockitoExtension.class)
    public class SessionScopeProxyTest {
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Apr 23 12:52:20 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java

    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class MojoExecutionScopeTest {
        @Test
        void testNestedEnter() throws Exception {
            MojoExecutionScope scope = new MojoExecutionScope();
    
            scope.enter();
    
            Object o1 = new Object();
            scope.seed(Object.class, o1);
            assertSame(o1, scope.scope(Key.get(Object.class), null).get());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SynchronizedBiMapTest.java

      }
    
      public void testInverse() {
        BiMap<String, Integer> bimap = create();
        BiMap<Integer, String> inverse = bimap.inverse();
        assertSame(bimap, inverse.inverse());
        assertTrue(inverse instanceof SynchronizedBiMap);
        assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
      }
    
      @Override
      public void testValues() {
        BiMap<String, Integer> map = create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/InternersTest.java

      public void testStrong_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Interner<String> pool = Interners.newStrongInterner();
        assertSame(canonical, pool.intern(canonical));
        assertSame(canonical, pool.intern(not));
      }
    
      public void testStrong_null() {
        Interner<String> pool = Interners.newStrongInterner();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top