- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 785 for EXPECTED (0.52 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
assertFailsWith<IllegalArgumentException> { windowUpdate(0) }.also { expected -> assertThat(expected.message) .isEqualTo("windowSizeIncrement == 0 || windowSizeIncrement > 0x7fffffffL: 0") } assertFailsWith<IllegalArgumentException> { windowUpdate(0x80000000L) }.also { expected -> assertThat(expected.message)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 28.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterator<String> iterator = asList("one", "two").iterator(); IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator)); assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>"); } public void testGetOnlyElement_noDefault_fiveElements() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/CollectorTester.java
} assertEquivalent(expectedResult, collector.finisher().apply(finalAccum)); } } private void assertEquivalent(R expected, R actual) { assertTrue( "Expected " + expected + " got " + actual + " modulo equivalence " + equivalence, equivalence.test(expected, actual)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 22:01:32 GMT 2025 - 6.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java
public class MultisetSetCountConditionallyTester<E> extends AbstractMultisetSetCountTester<E> { @Override void setCountCheckReturnValue(E element, int count) { assertTrue( "setCount() with the correct expected present count should return true", setCount(element, count)); } @Override void setCountNoCheckReturnValue(E element, int count) { setCount(element, count); } @CanIgnoreReturnValue
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AtomicDouble.java
* href="#bitEquals">bitwise equal</a> to the expected value. * * @param expect the expected value * @param update the new value * @return {@code true} if successful. False return indicates that the actual value was not * bitwise equal to the expected value. */ public final boolean compareAndSet(double expect, double update) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 7.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
static void testSort(byte[] input, byte[] expected) { input = Arrays.copyOf(input, input.length); UnsignedBytes.sort(input); assertThat(input).isEqualTo(expected); } static void testSort(byte[] input, int from, int to, byte[] expected) { input = Arrays.copyOf(input, input.length); UnsignedBytes.sort(input, from, to); assertThat(input).isEqualTo(expected); } public void testSortIndexed() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 13.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
return Integer.MIN_VALUE; } return big.intValue(); } private void assertOperationEquals(int a, int b, String op, int expected, int actual) { if (expected != actual) { fail("Expected for " + a + " " + op + " " + b + " = " + expected + ", but got " + actual); } } // Depends on the correctness of BigIntegerMath.factorial. public void testFactorial() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
android/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) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
encoding: Encoding, component: Component, ) { val expected = component.canonicalize(encoding.encode(codePoint)) val urlString = component.urlString(expected) val url = urlString.toHttpUrl() val actual = component.encodedValue(url) if (actual != expected) { fail("Encoding $component $codePoint using $encoding: '$actual' != '$expected'") } } private fun testEncodeAndDecode(Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
}); fail("Expected NullPointerException or UnsupportedOperationException"); } catch (NullPointerException | UnsupportedOperationException expected) { } } public void testMergeNullFunction() { try { getMap().merge(k0(), v3(), null); fail("Expected NullPointerException or UnsupportedOperationException");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.8K bytes - Click Count (0)