Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 50 for isSameInstanceAs (0.09 sec)

  1. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        Network<String, String> network1 =
            ImmutableNetwork.copyOf(NetworkBuilder.directed().<String, String>build());
        Network<String, String> network2 = ImmutableNetwork.copyOf(network1);
    
        assertThat(network2).isSameInstanceAs(network1);
      }
    
      @Test
      public void edgesConnecting_directed() {
        MutableNetwork<String, String> mutableNetwork =
            NetworkBuilder.directed().allowsSelfLoops(true).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        ListenableFuture<String> future = asyncCallable.call();
        ExecutionException e = assertThrows(ExecutionException.class, () -> future.get());
        assertThat(e).hasCauseThat().isSameInstanceAs(expected);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming() throws Exception {
        String oldName = Thread.currentThread().getName();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        ExecutionException ee = assertThrows(ExecutionException.class, () -> future.get());
        assertThat(ee).hasCauseThat().isSameInstanceAs(e);
      }
    
      public void testSetFuture() throws Exception {
        SettableFuture<String> future = SettableFuture.create();
        SettableFuture<String> nested = SettableFuture.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. android/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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  8. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top