- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 168 for CIFSException (0.1 seconds)
-
src/test/java/jcifs/util/transport/TransportExceptionTest.java
assertTrue(exception instanceof CIFSException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); // Test that it can be caught as CIFSException boolean caughtAsCIFSException = false; try { throw exception; } catch (CIFSException e) { caughtAsCIFSException = true;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
src/main/java/jcifs/CIFSContext.java
* @throws CIFSException if the pipe resource cannot be accessed */ SmbPipeResource getPipe(String url, int pipeType) throws CIFSException; /** * Close all connections and release resources associated with this context * * @return whether any connection was still in use * @throws CIFSException if an error occurs during cleanup */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.ArgumentCaptor; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSException; import jcifs.Configuration; import jcifs.internal.CommonServerMessageBlockRequest; import jcifs.internal.smb1.com.SmbComBlankResponse; import jcifs.internal.smb1.com.SmbComClose;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbWatchHandleImpl.java
* @see jcifs.SmbWatchHandle#call() */ @Override public List<FileNotifyInformation> call() throws CIFSException { return watch(); } /** * {@inheritDoc} * * @see jcifs.SmbWatchHandle#close() */ @Override public void close() throws CIFSException { if (this.handle.isValid()) { this.handle.close(0L); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
} /** * * @param req * @param params * @return response * @throws CIFSException */ public <T extends CommonServerMessageBlockResponse> T send(final jcifs.internal.Request<T> req, final RequestParam... params) throws CIFSException { return send(req, null, params); } /** * @param request * @param responseCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
assertTrue(reqCap.getValue() instanceof NtTransNotifyChange, "SMB1 notify request must be used"); } // If a response is not marked as received, throw a CIFSException @Test @DisplayName("watch() throws CIFSException when response not received") void watch_responseNotReceived_throwsCIFSException() throws Exception { NotifyResponse resp = mock(NotifyResponse.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmServletTest.java
@Mock private NameServiceClient nameServiceClient; /** * Sets up the mock objects before each test. * @throws CIFSException */ @BeforeEach void setUp() throws CIFSException { ntlmServlet = new TestNtlmServlet(); // Mock ServletConfig to provide initialization parameters Map<String, String> initParams = new HashMap<>();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype"); // Assert throwing/catching behavior with assertThrows SMBProtocolDecodingException thrown = assertThrows(SMBProtocolDecodingException.class, () -> { throw new SMBProtocolDecodingException(); }, "Should be throwable via assertThrows");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/ResourceFilter.java
* * @param resource the SMB resource to test * @return whether the given resource should be included * @throws CIFSException if an error occurs while accessing the resource */ boolean accept(SmbResource resource) throws CIFSException;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java
* @return the info cast to the specified type * @throws CIFSException if the information cannot be cast to the specified type */ @SuppressWarnings("unchecked") public <T extends FileInformation> T getInfo(final Class<T> type) throws CIFSException { if (!type.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); } return (T) this.info;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.7K bytes - Click Count (0)