- Sort Score
- Num 10 results
- Language All
Results 171 - 180 of 785 for EXPECTED (1.04 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
clientListener.assertOpen() val reason = repeat('X', 124) assertFailsWith<IllegalArgumentException> { webSocket.close(1000, reason) }.also { expected -> assertThat(expected.message).isEqualTo("reason.size() > 123: $reason") } webSocket.close(1000, null) serverListener.assertClosing(1000, "") server.close(1000, null)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 35.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
assertEquals(expected.isEmpty(), source.isEmpty()); } public void testLength() throws IOException { assertEquals(expected.length(), source.length()); } public void testLengthIfKnown() throws IOException { Optional<Long> lengthIfKnown = source.lengthIfKnown(); if (lengthIfKnown.isPresent()) { assertEquals(expected.length(), (long) lengthIfKnown.get()); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 7.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 30.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/JobExecutorTest.java
// Test shutdown without listener should throw NullPointerException try { jobExecutor.shutdown(); fail("Expected NullPointerException"); } catch (NullPointerException e) { // Expected exception assertNotNull(e); } } @Test public void test_shutdown_multipleCalls() { // Test multiple shutdown callsCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
fail(); } catch (TimeoutException expected) { } catch (ExecutionException e) { throw new AssertionError(e); } } static void verifyTimedGetOnPendingFuture(Future<?> future) { try { getUninterruptibly(future, 0, SECONDS); fail(); } catch (TimeoutException expected) { } catch (ExecutionException e) { throw new AssertionError(e); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testGetContentAsStringWithoutCache() { CurlResponse response = new CurlResponse(); try { response.getContentAsString(); fail("Expected CurlException"); } catch (CurlException e) { assertTrue(e.getMessage().contains("Failed to access the content")); } } @TestCreated: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt
} thread.start() thread.join() assertFailsWith<AssertionError> { testRule.afterEach(extensionContext) }.also { expected -> assertThat(expected).hasMessage("uncaught exception thrown during test") assertThat(expected.cause!!).hasMessage("boom!") } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java
ThrowOnRunService service = new ThrowOnRunService(); service.startAsync(); IllegalStateException expected = assertThrows(IllegalStateException.class, service::awaitTerminated); executionThread.join(); assertThat(expected).hasCauseThat().isEqualTo(service.failureCause()); assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); assertTrue(service.shutDownCalled);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 12.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
String msg = "Alphanumeric characters are always 'safe' and should not be explicitly specified"; IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> new PercentEscaper("-+#abc.!", false)); assertThat(expected).hasMessageThat().isEqualTo(msg); } public void testBadArguments_plusforspace() { // space can be a safe char if plusForSpace is false
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 5.4K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/bug_report.md
**To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Environment (please complete the following information):** - OS: [e.g. Windows 10]
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Aug 17 22:53:30 GMT 2020 - 782 bytes - Click Count (0)