Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 481 - 490 of 524 for isEqualTo (0.22 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        assertFalse(resultFuture.cancel(true));
        assertFalse(resultFuture.isCancelled());
        assertFalse(inputFuture.isCancelled());
        assertFalse(outputFuture.isCancelled());
        assertThat(resultFuture.get()).isEqualTo(RESULT_DATA);
      }
    
      public void testFutureGetThrowsRuntimeException() throws Exception {
        BadFuture badInput = new BadFuture(immediateFuture(20));
        ListenableFuture<String> chain = buildChainingFuture(badInput);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

     */
    
    @file:Suppress(
      "CANNOT_OVERRIDE_INVISIBLE_MEMBER",
      "INVISIBLE_MEMBER",
      "INVISIBLE_REFERENCE",
    )
    
    package okhttp3.internal.concurrent
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import java.io.Closeable
    import java.util.AbstractQueue
    import java.util.concurrent.BlockingQueue
    import java.util.concurrent.Executors
    import java.util.concurrent.TimeUnit
    import java.util.logging.Logger
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public <T> void testToString() {
        assertThat(new TypeToken<String>() {}.toString()).isEqualTo(String.class.getName());
        assertThat(TypeToken.of(new TypeCapture<T>() {}.capture()).toString()).isEqualTo("T");
        assertThat(new Entry<String, Integer>() {}.keyType().toString()).isEqualTo("java.lang.String");
      }
    
      private static <K, V> TypeToken<Map<K, V>> mapOf(Class<K> keyType, Class<V> valueType) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        runner.start();
        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, task::interruptTask);
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        /*
         * We need to wait for the runner to exit. It used to be that the runner would get stuck in the
         * busy loop when interrupt threw.
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        runner.start();
        isInterruptibleRegistered.await();
        RuntimeException expected = assertThrows(RuntimeException.class, task::interruptTask);
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        /*
         * We need to wait for the runner to exit. It used to be that the runner would get stuck in the
         * busy loop when interrupt threw.
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertEquals(emptySet(), multimap.keySet());
        assertEquals(0, multimap.size());
        assertTrue(multimap.values().isEmpty());
        assertThat(multimap.toString()).isEqualTo("{}");
      }
    
      public void testEmptyMultimapWrites() {
        Multimap<String, Integer> multimap = ImmutableListMultimap.of();
        UnmodifiableCollectionTests.assertMultimapIsUnmodifiable(multimap, "foo", 1);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

        assertEquals(LIST1, ImmutableList.copyOf(newDelegatingListWithEquals(LIST1)));
      }
    
      public void testToString() {
        List<String> proxy = newDelegatingList(LIST1);
        assertThat(proxy.toString()).isEqualTo(Proxy.getInvocationHandler(proxy).toString());
      }
    
      interface A {}
    
      interface B {}
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(newDelegatingList(LIST1))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      }
    
      public void testConstantsEverySixteenthFactorial() {
        for (int i = 0, n = 0; n <= DoubleMath.MAX_FACTORIAL; i++, n += 16) {
          assertThat(DoubleMath.everySixteenthFactorial[i])
              .isEqualTo(BigIntegerMath.factorial(n).doubleValue());
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundIntegralDoubleToInt() {
        for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 03 16:20:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        ImmutableBiMap<String, Integer> copy = SerializableTester.reserializeAndAssert(bimap);
        assertEquals(Integer.valueOf(1), copy.get("one"));
        assertThat(copy.inverse().get(1)).isEqualTo("one");
        assertThat(copy.inverse().inverse()).isSameInstanceAs(copy);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testInverseSerialization() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertEquals(emptySet(), multimap.keySet());
        assertEquals(0, multimap.size());
        assertTrue(multimap.values().isEmpty());
        assertThat(multimap.toString()).isEqualTo("{}");
      }
    
      public void testEmptyMultimapWrites() {
        Multimap<String, Integer> multimap = ImmutableListMultimap.of();
        UnmodifiableCollectionTests.assertMultimapIsUnmodifiable(multimap, "foo", 1);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.2K bytes
    - Click Count (0)
Back to Top