Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 59 for isSameInstanceAs (1.68 sec)

  1. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Ints.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Ints.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Ints.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Ints.ensureCapacity(ARRAY1, 2, 1)).isEqualTo(new int[] {(int) 1, (int) 0, (int) 0});
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testEnsureCapacity() {
        assertThat(Doubles.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Doubles.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Doubles.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(
                Arrays.equals(
                    new double[] {(double) 1, (double) 0, (double) 0},
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      public void testEnsureCapacity() {
        assertThat(Floats.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Floats.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Floats.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(
                Arrays.equals(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/LongsTest.java

        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Longs.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Longs.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Longs.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Longs.ensureCapacity(ARRAY1, 2, 1))
            .isEqualTo(new long[] {(long) 1, (long) 0, (long) 0});
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

                .build(exceptionLoader(e));
    
        UncheckedExecutionException uee =
            assertThrows(UncheckedExecutionException.class, () -> map.getUnchecked(new Object()));
        assertThat(uee).hasCauseThat().isSameInstanceAs(e);
        assertTrue(listener.isEmpty());
        checkEmpty(map);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

      public void copyOfImmutableGraph_optimized() {
        Graph<String> graph1 = ImmutableGraph.copyOf(GraphBuilder.directed().<String>build());
        Graph<String> graph2 = ImmutableGraph.copyOf(graph1);
    
        assertThat(graph2).isSameInstanceAs(graph1);
      }
    
      @Test
      public void immutableGraphBuilder_appliesGraphBuilderConfig() {
        ImmutableGraph<String> emptyGraph =
            GraphBuilder.directed()
                .allowsSelfLoops(true)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/NullCacheTest.java

                .build(exceptionLoader(e));
    
        UncheckedExecutionException uee =
            assertThrows(UncheckedExecutionException.class, () -> map.getUnchecked(new Object()));
        assertThat(uee).hasCauseThat().isSameInstanceAs(e);
        assertTrue(listener.isEmpty());
        checkEmpty(map);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

      public void copyOfImmutableGraph_optimized() {
        Graph<String> graph1 = ImmutableGraph.copyOf(GraphBuilder.directed().<String>build());
        Graph<String> graph2 = ImmutableGraph.copyOf(graph1);
    
        assertThat(graph2).isSameInstanceAs(graph1);
      }
    
      @Test
      public void immutableGraphBuilder_appliesGraphBuilderConfig() {
        ImmutableGraph<String> emptyGraph =
            GraphBuilder.directed()
                .allowsSelfLoops(true)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        ValueAndCloser<?> valueAndCloser = finishToValueAndCloser(closingFuture);
        try {
          valueAndCloser.get();
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isSameInstanceAs(exception);
        }
        valueAndCloser.closeAsync();
      }
    
      @Override
      void assertBecomesCanceled(ClosingFuture<?> closingFuture) throws ExecutionException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            spy(
                new AsyncFunction<Throwable, Integer>() {
                  @Override
                  public ListenableFuture<Integer> apply(Throwable t) throws Exception {
                    assertThat(t).isSameInstanceAs(raisedException);
                    return immediateFuture(20);
                  }
                });
        ListenableFuture<Integer> failingFuture = immediateFailedFuture(raisedException);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
Back to top