Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 401 - 410 of 785 for EXPECTED (0.29 seconds)

  1. android/guava/src/com/google/common/collect/HashBiMap.java

        return create(16);
      }
    
      /**
       * Constructs a new, empty bimap with the specified expected size.
       *
       * @param expectedSize the expected number of entries
       * @throws IllegalArgumentException if the specified expected size is negative
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create(
          int expectedSize) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 37K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

                executor.execute(runnable);
              }
            };
        future.setFuture(badFuture);
        ExecutionException expected = getExpectingExecutionException(future);
        assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString());
      }
    
      public void testSetFuture_misbehavingFutureDoesNotThrow() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt

            .build()
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("At least one TLS version is required")
        }
      }
    
      @Test
      fun noCipherSuites() {
        assertFailsWith<IllegalArgumentException> {
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .cipherSuites(*arrayOf<CipherSuite>())
            .build()
        }.also { expected ->
          assertThat(expected.message)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

        @Throws(IOException::class)
        constructor(response: ResponseBody) : this(
          source = response.source(),
          boundary =
            response.contentType()?.parameter("boundary")
              ?: throw ProtocolException("expected the Content-Type to have a boundary parameter"),
        )
    
        @Throws(IOException::class)
        fun nextPart(): Part? {
          check(!closed) { "closed" }
    
          if (noMoreParts) return null
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java

    public class CollectionStreamTester<E> extends AbstractCollectionTester<E> {
      /*
       * We're not really testing the implementation of Stream, only that we're getting a Stream
       * that corresponds to the expected elements.
       */
    
      @CollectionFeature.Require(absent = KNOWN_ORDER)
      public void testStreamToArrayUnknownOrder() {
        assertEqualIgnoringOrder(getSampleElements(), asList(collection.stream().toArray()));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
     * <p>Failure of the expected event to occur within an implementation-defined "reasonable" time
     * period or an interrupt while waiting for the expected event will result in a {@link
     * RuntimeException}.
     *
     * <p>Here's an example that tests a {@code finalize} method:
     *
     * {@snippet :
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

                assertTrue(roleSet.size() >= 0);
    
                roleSet = roleQueryHelper.build(SearchRequestType.JSON);
                assertTrue(roleSet.size() >= 0);
            } catch (Exception e) {
                // Expected due to missing dependencies in test environment
                assertTrue(true);
            }
        }
    
        @Test
        public void test_build_withRequest() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

            Request(
              url = server.url("/"),
              body = requestBody,
            ),
          )
    
        assertFailsWith<IOException> {
          callA.execute()
        }.also { expected ->
          assertThat(expected).hasMessage("boom")
        }
    
        assertThat(server.requestCount).isEqualTo(0)
    
        // Confirm that the connection pool was not corrupted by making another call. This doesn't use
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 11:54:15 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * remove) are supported. Null keys and values are supported.
     *
     * <p>{@code containsKey(k)}, {@code put(k, v)} and {@code remove(k)} are all (expected and
     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
     * function doing a good job of distributing the elements to the buckets to a distribution not far
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 14:59:07 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

            };
            ComponentUtil.register(factory, "webApiManagerFactory");
    
            // Execute and expect IOException
            try {
                webApiFilter.doFilter(request, response, chain);
                fail("Expected IOException");
            } catch (IOException e) {
                assertEquals("Test IOException", e.getMessage());
            } catch (ServletException e) {
                fail("Unexpected ServletException: " + e.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.5K bytes
    - Click Count (0)
Back to Top