- Sort Score
- Num 10 results
- Language All
Results 371 - 380 of 785 for EXPECTED (0.06 seconds)
-
guava-tests/test/com/google/common/primitives/LongsTest.java
try { Longs.concat(arrays); fail(); } catch (IllegalArgumentException expected) { } } private static void assertByteArrayEquals(byte[] expected, byte[] actual) { assertWithMessage( "Expected: %s, but got: %s", Arrays.toString(expected), Arrays.toString(actual)) .that(Arrays.equals(expected, actual)) .isTrue(); } public void testToByteArray() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.8K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java
* _last_ request, but it remembers the (expected) time of the _next_ request. This also enables * us to tell immediately (see tryAcquire(timeout)) whether a particular timeout is enough to get * us to the point of the next scheduling time, since we always maintain that. And what we mean by * "an unused RateLimiter" is also defined by that notion: when we observe that the
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 19.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
} val requestBody = (call.request().body as AsyncRequestBody?)!!.takeSink() assertFailsWith<IOException> { requestBody.writeUtf8("request body\n") requestBody.flush() }.also { expected -> assertThat(expected.message) .isEqualTo("stream was reset: CANCEL") } body.awaitSuccess() assertThat(eventRecorder.recordedEventTypes()).containsExactly( CallStart::class,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 25.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
Collection<V> values = multimap().get(k3()); if (values.size() == 0) { expectUnchanged(); // Be extra thorough in case internal state was corrupted by the expected null. assertEquals(new ArrayList<>(), new ArrayList<>(values)); assertEquals(size, multimap().size()); } else { assertEquals(newArrayList(v3()), new ArrayList<>(values));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 7.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedHashMultimap.java
/** * Constructs an empty {@code LinkedHashMultimap} with enough capacity to hold the specified * numbers of keys and values without rehashing. * * @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 26 20:08:09 GMT 2025 - 20K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureDefaultAtomicHelperTest.java
import com.google.common.annotations.J2ktIncompatible; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests that {@link AbstractFutureState} uses the expected {@code AtomicHelper} implementation. * * <p>We have more thorough testing of {@code AtomicHelper} implementations in {@link * AbstractFutureFallbackAtomicHelperTest}. The advantage to this test is that it can run underCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 1.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
val call1 = client.newCall(Request(server.url("/"))) assertFailsWith<IOException> { call1.execute() }.also { expected -> when (expected) { is SocketTimeoutException, is SSLException -> {} else -> { throw expected } } } // The second call times out because it uses the same bad connection.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 67.5K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilder.java
Element tr = getChild(thead, "tr"); List<Element> header = children(tr, "td"); if (header.size() < 1) { throw new RuntimeException(String.format("Expected at least 1 <td> in <thead>/<tr>, found: %s", header)); } Map<String, Element> inheritedValueTitleMapping = new HashMap<String, Element>(); List<Element> valueTitles = new ArrayList<Element>();
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 6.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 26.6K bytes - Click Count (0)