- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for zoom (0.02 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
when(src.getContext()).thenReturn(ctx); // Force failure before any stream construction when(src.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenThrow(new SmbException("boom")); SmbTreeHandleImpl sh = newTreeHandle(false); // force non-SMB2 path to avoid server-side branch SmbTreeHandleImpl dh = newTreeHandle(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ObjectArrays.java
* array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the * specified array and the size of the specified collection. * * <p>If the collection fits in the specified array with room to spare (i.e., the array has more * elements than the collection), the element in the array immediately following the end of the * collection is set to {@code null}. This is useful in determining the length of the collection
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.9K bytes - Viewed (0)