Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 213 for assertSame (0.22 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        for (Entry<Object, Object> entry : result.entrySet()) {
          Object key = entry.getKey();
          Object value = entry.getValue();
          assertSame(value, result.get(key));
          assertNull(result.get(value));
          assertSame(value, cache.asMap().get(key));
          assertSame(key, cache.asMap().get(value));
        }
      }
    
      public void testBulkLoad_clobber() throws ExecutionException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
        assertSame(ImmutableBiMap.of(), copy);
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableBiMap<String, Integer> copy =
            ImmutableBiMap.copyOf(Collections.singletonMap("one", 1));
        assertMapEquals(copy, "one", 1);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  6. 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)
  7. guava-tests/test/com/google/common/base/MoreObjectsTest.java

        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. 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)
  9. guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

            };
      }
    
      public void testGet() throws ExecutionException {
        when(mock.get("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.get("key"));
      }
    
      public void testGetUnchecked() {
        when(mock.getUnchecked("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.getUnchecked("key"));
      }
    
      public void testGetAll() throws ExecutionException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
        assertSame(ImmutableBiMap.of(), copy);
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableBiMap<String, Integer> copy =
            ImmutableBiMap.copyOf(Collections.singletonMap("one", 1));
        assertMapEquals(copy, "one", 1);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top