Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 615 for EXPECTED (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        try {
          entrySet.add((Entry<K, V>) entryToAdd);
          fail("Expected UnsupportedOperationException or NullPointerException.");
        } catch (UnsupportedOperationException | NullPointerException e) {
          // Expected.
        }
        assertInvariants(map);
    
        try {
          entrySet.addAll(singleton((Entry<K, V>) entryToAdd));
          fail("Expected UnsupportedOperationException or NullPointerException.");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

      @Test
      fun readIndexedHeaderFieldIndex0() {
        bytesIn.writeByte(0x80) // == Indexed - Add idx = 0
        assertFailsWith<IOException> {
          hpackReader!!.readHeaders()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("index == 0")
        }
      }
    
      // Example taken from twitter/hpack DecoderTest.testIllegalIndex
      @Test
      fun readIndexedHeaderFieldTooLargeIndex() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 38.6K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(value = KNOWN_ORDER, absent = NON_STANDARD_TOSTRING)
      public void testToString_sizeSeveral() {
        String expected = copyToList(getOrderedElements()).toString();
        assertEquals("collection.toString() incorrect", expected, collection.toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testToString_null() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(value = KNOWN_ORDER, absent = NON_STANDARD_TOSTRING)
      public void testToString_sizeSeveral() {
        String expected = copyToList(getOrderedElements()).toString();
        assertEquals("collection.toString() incorrect", expected, collection.toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testToString_null() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        private boolean expectCall = false;
        private final CountDownLatch calledCountDown = new CountDownLatch(1);
    
        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertThat(actual.toString()).isEqualTo(expected.toString());
        assertThat(actual.getName()).isEqualTo(expected.getName());
        assertEquals(expected.getGenericDeclaration(), actual.getGenericDeclaration());
        if (!Types.NativeTypeVariableEquals.NATIVE_TYPE_VARIABLE_ONLY) {
          assertEquals(actual.toString(), expected.hashCode(), actual.hashCode());
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                      } catch (ExecutionException expected) {
                      }
                      try {
                        peeker.getDone(nonInput);
                        fail("Peeker should not be able to peek into non-input ClosingFuture.");
                      } catch (IllegalArgumentException expected) {
                      }
                      capturedPeeker.set(peeker);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java

        Subscriber subscriber = Subscriber.create(bus, this, method);
    
        InvocationTargetException expected =
            assertThrows(
                InvocationTargetException.class,
                () -> subscriber.invokeSubscriberMethod(FIXTURE_ARGUMENT));
        assertThat(expected).hasCauseThat().isInstanceOf(IntentionalException.class);
      }
    
      public void testInvokeSubscriberMethod_errorPassthrough() throws Throwable {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 21:52:12 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

            chain.updateThrowsException = true;
            User user = createTestUser("testuser", "Test User");
    
            try {
                chain.update(user);
                fail("Expected exception to be thrown");
            } catch (RuntimeException e) {
                assertEquals("Update failed", e.getMessage());
            }
    
            assertEquals(1, chain.updateCalls.size());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/HashMultimap.java

       * MultimapBuilder.hashKeys(expectedKeys).hashSetValues(expectedValuesPerKey).build()}, which
       * provides more control over the underlying data structure.
       *
       * @param expectedKeys the expected number of distinct keys
       * @param expectedValuesPerKey the expected average number of values per key
       * @throws IllegalArgumentException if {@code expectedKeys} or {@code expectedValuesPerKey} is
       *     negative
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top