Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for isSameInstanceAs (0.09 sec)

  1. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionLifecycleTest.kt

        assertThat(instanceServer).isSameInstanceAs(server)
    
        assertThat(server.started).isTrue()
        server.enqueue(MockResponse())
      }
    
      @AfterEach
      fun afterEach(server: MockWebServer) {
        assertThat(server).isSameInstanceAs(instanceServer)
      }
    
      @Test
      fun testClient(server: MockWebServer) {
        assertThat(server).isSameInstanceAs(instanceServer)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(String.class)).isSameInstanceAs(String.class);
      }
    
      public void testUnwrap() {
        assertThat(Primitives.unwrap(Integer.class)).isSameInstanceAs(int.class);
        assertThat(Primitives.unwrap(int.class)).isSameInstanceAs(int.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        ImmutableDoubleArray iia3 = ImmutableDoubleArray.of(5, 25, 125);
    
        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThat(expected).hasCauseThat().isSameInstanceAs(cause);
      }
    
      @GwtIncompatible // getCauseAs(Throwable, Class)
      public void testGetCauseAs() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(String.class)).isSameInstanceAs(String.class);
      }
    
      public void testUnwrap() {
        assertThat(Primitives.unwrap(Integer.class)).isSameInstanceAs(int.class);
        assertThat(Primitives.unwrap(int.class)).isSameInstanceAs(int.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

              }
            };
        assertEquals(0, service.startUpCalled);
        RuntimeException e =
            assertThrows(RuntimeException.class, () -> service.startAsync().awaitRunning());
        assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        assertEquals(1, service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertThat(max(2, 1)).isEqualTo(2);
      }
    
      public void testMinMaxNatural_equalInstances() {
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(min(a, b)).isSameInstanceAs(a);
        assertThat(max(a, b)).isSameInstanceAs(a);
      }
    
      public void testMinMaxComparator() {
        Comparator<Integer> reverse = reverseOrder();
        assertThat(min(1, 2, reverse)).isEqualTo(2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

              }
            };
        assertEquals(0, service.startUpCalled);
        RuntimeException e =
            assertThrows(RuntimeException.class, () -> service.startAsync().awaitRunning());
        assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        assertEquals(1, service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThat(caughtUee).hasCauseThat().isSameInstanceAs(uee);
    
        caughtUee =
            assertThrows(
                UncheckedExecutionException.class, () -> cacheUnchecked.getUnchecked(new Object()));
        assertThat(caughtUee).hasCauseThat().isSameInstanceAs(uee);
    
        cacheUnchecked.refresh(new Object());
        checkLoggedCause(uee);
    
        caughtUee =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        assertThat(UnsignedBytes.lexicographicalComparator()).isSameInstanceAs(defaultComparator);
        if (unsafeComparatorAvailable()) {
          assertThat(Class.forName(unsafeComparatorClassName()))
              .isSameInstanceAs(defaultComparator.getClass());
        } else {
          assertThat(UnsignedBytes.lexicographicalComparatorJavaImpl())
              .isSameInstanceAs(defaultComparator);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top