- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 1,400 for Expected (0.65 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
Request .Builder() .url(server.url("/")) .build() assertFailsWith<IllegalStateException> { client.newCall(request).execute() }.also { expected -> assertThat(expected.message).isEqualTo( "network interceptor $interceptor must call proceed() exactly once", ) } } @Test fun networkInterceptorsCannotCallProceedMultipleTimes() {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 16:11:23 UTC 2025 - 28.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
} catch (UnsupportedOperationException expected) { } try { unmod.merge(4, "four", (k, v) -> v); fail("UnsupportedOperationException expected"); } catch (UnsupportedOperationException expected) { } try { unmod.clear(); fail("UnsupportedOperationException expected"); } catch (UnsupportedOperationException expected) { } }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
List<String> expected = new ArrayList<>(); expected.add("maven-it-plugin-error"); expected.add("maven-it-plugin-configuration"); expected.add("maven-it-plugin-dependency-resolution"); expected.add("maven-it-plugin-packaging"); expected.add("maven-it-plugin-log-file"); expected.add("maven-it-plugin-expression");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 94.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/AbstractIntervalControllerTest.java
// Should throw CrawlerSystemException try { controller.delay(IntervalController.PRE_PROCESSING); fail("Expected CrawlerSystemException to be thrown"); } catch (final CrawlerSystemException e) { // Expected assertTrue(e.getMessage().contains("Could not stop a process")); } } /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:58:39 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
assertFailsWith<IOException> { client.newCall(request).execute() }.also { expected -> expected.assertSuppressed { val suppressed = it.single() assertThat(suppressed).isInstanceOf(IOException::class.java) assertThat(suppressed).isNotSameAs(expected) } } } /** Confirm suppressed exceptions that occur after connecting are returned. */
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java
collection.toArray(array)); } private static void expectArrayContentsAnyOrder(Object[] expected, Object[] actual) { assertEqualIgnoringOrder(asList(expected), asList(actual)); } private void expectArrayContentsInOrder(List<E> expected, Object[] actual) { assertEquals("toArray() ordered contents: ", expected, asList(actual)); } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex)); assertEquals("Expected structureSize = 4", exception.getMessage()); } @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 8, 16, 100, 255, 1024, 4096, 65535 })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertThat(stats.loadExceptionCount()).isEqualTo(0); assertThat(stats.hitCount()).isEqualTo(0); ExecutionError expected = assertThrows(ExecutionError.class, () -> cache.get(new Object())); assertThat(expected).hasCauseThat().isSameInstanceAs(e); stats = cache.stats(); assertThat(stats.missCount()).isEqualTo(1); assertThat(stats.loadSuccessCount()).isEqualTo(0);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 91.1K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html
These stubs form an internally consistent data-set that is not expected to change. They are used to test the individual components in the lifecycle with data that has expected characteristics and can be asserted as desired. You can change/extend these stubs, and tests should not be breaking too much, since most tests assert using expected values from the stubs. Normally, when you try to use data from the stubs that
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
// interpreted in little-endian order. int verification = Integer.reverseBytes(Ints.fromByteArray(result)); if (expected != verification) { throw new AssertionError( "Expected: " + Integer.toHexString(expected) + " got: " + Integer.toHexString(verification)); } } static final Funnel<Object> BAD_FUNNEL =Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 25.6K bytes - Viewed (0)