- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 256 for boom (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/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/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/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/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/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/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/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) -
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)