Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for zoom (0.65 sec)

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

        void ensureTreeConnected_propagatesException() throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            CIFSException boom = new CIFSException("tree-fail");
            when(handle.ensureTreeConnected()).thenThrow(boom);
    
            // Act + Assert
            CIFSException ex = assertThrows(CIFSException.class, out::ensureTreeConnected);
            assertEquals("tree-fail", ex.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/io/FaultyFileSystem.kt

        target: Path,
      ) {
        if (renameFaults.contains(source) || renameFaults.contains(target)) throw IOException("boom!")
        super.atomicMove(source, target)
      }
    
      @Throws(IOException::class)
      override fun delete(
        path: Path,
        mustExist: Boolean,
      ) {
        if (deleteFaults.contains(path)) throw IOException("boom!")
        super.delete(path, mustExist)
      }
    
      @Throws(IOException::class)
      override fun deleteRecursively(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

       * exception goes to the uncaught exception handler.
       */
      private fun interceptorThrowsRuntimeExceptionAsynchronous(network: Boolean) {
        val boom = RuntimeException("boom!")
        addInterceptor(network) { chain: Interceptor.Chain? -> throw boom }
        val executor = ExceptionCatchingExecutor()
        client =
          client
            .newBuilder()
            .dispatcher(Dispatcher(executor))
            .build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt

            override fun run(): Unit = throw RuntimeException("boom!")
          }
        thread.start()
        thread.join()
    
        assertFailsWith<AssertionError> {
          testRule.afterEach(extensionContext)
        }.also { expected ->
          assertThat(expected).hasMessage("uncaught exception thrown during test")
          assertThat(expected.cause!!).hasMessage("boom!")
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileFilterTest.java

            // Arrange: filter delegates to isDirectory which may throw SmbException
            SmbFileFilter filter = f -> f.isDirectory();
            SmbException boom = new SmbException("io error");
            when(smbFile.isDirectory()).thenThrow(boom);
    
            // Act + Assert
            SmbException thrown = assertThrows(SmbException.class, () -> filter.accept(smbFile));
            assertEquals("io error", thrown.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            // Act & Assert: the exception is propagated and interaction recorded once
            RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get);
            assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause());
            assertEquals("boom", thrown.getCause().getMessage());
            verify(supplier, times(1)).get();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

        void throwsSmbExceptionFromFilter() {
            SmbFilenameFilter filter = (dir, name) -> {
                throw new SmbException("boom");
            };
    
            SmbException ex = assertThrows(SmbException.class, () -> filter.accept(mockDir, "x"));
            assertEquals("boom", ex.getMessage(), "Exception message should be preserved");
            verifyNoInteractions(mockDir);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top