Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 707 for boom (0.02 sec)

  1. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

                public SmbTreeHandleImpl connect(SmbResourceLocatorImpl loc) throws SmbException {
                    throw new SmbException("boom");
                }
            };
            SmbException ex3 = assertThrows(SmbException.class, () -> c3.connectWrapException(loc));
            assertEquals("boom", ex3.getMessage());
        }
    
        @Test
        @DisplayName("ensureDFSResolved returns early for SmbComClose requests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

        val requestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? = null
    
            override fun writeTo(sink: BufferedSink) {
              throw IOException("boom") // Despite this exception, 'sink' is healthy.
            }
          }
    
        val callA =
          client.newCall(
            Request(
              url = server.url("/"),
              body = requestBody,
            ),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenThrow(new SmbException("boom"));
    
            IOException ex = assertThrows(IOException.class, stream::available, "Should convert SmbException to IOException");
            assertTrue(ex.getMessage().contains("boom"));
        }
    
        @Test
        @DisplayName("ensureTreeConnected delegates to handle")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                SmbException se = new SmbException("x", new jcifs.util.transport.TransportException(new InterruptedException("boom")));
                IOException ioe = SmbFileInputStream.seToIoe(se);
                assertTrue(ioe instanceof InterruptedIOException);
                assertTrue(ioe.getMessage().contains("boom"));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

         * is present.
         */
        @Test
        @DisplayName("toString with root cause contains stack trace")
        void testToStringWithRootCause() {
            RuntimeException cause = new RuntimeException("boom");
            SmbException ex = new SmbException(0, cause);
            assertTrue(ex.toString().contains("RuntimeException"), "String representation must include the root cause stack trace");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            // First call throws, second accepts
            when(filter.accept(any())).thenThrow(new CIFSException("boom")).thenReturn(true);
    
            ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), filter);
    
            assertTrue(it.hasNext());
            SmbResource res = it.next();
            assertNotNull(res);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

        val call = client.newCall(request)
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("success")
      }
    
      /**
       * Tests that use this will fail unless boot classpath is set. Ex. `-Xbootclasspath/p:/tmp/alpn-boot-8.0.0.v20140317`
       */
      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SIDTest.java

            void testResolveWeakCIFSExceptionIsIgnored() throws Exception {
                SID sid = new SID("S-1-5-21-1-2-3");
                doThrow(new CIFSException("boom")).when(mockResolver).resolveSids(any(), anyString(), any());
                sid.initContext("srv", mockCtx);
    
                // Accessor should swallow CIFSException and proceed
                sid.getType();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

      )
      fun throwingOnFailLogs() {
        webServer.enqueue(
          MockResponse
            .Builder()
            .code(200)
            .body("Body")
            .build(),
        )
        val e = RuntimeException("boom")
        clientListener.setNextEventDelegate(
          object : WebSocketListener() {
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // SYN_STREAM
        peer.sendFrame().headers(false, 3, headerEntries("headers", "bam"))
        peer.acceptFrame() // PING
        peer.sendFrame().headers(true, 3, headerEntries("trailers", "boom"))
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0) // PONG
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
Back to top