Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 170 for CIFSException (0.06 sec)

  1. src/main/java/jcifs/CIFSException.java

     *
     * @author mbechler
     *
     */
    public class CIFSException extends IOException {
    
        /**
         *
         */
        private static final long serialVersionUID = 7806460518865806784L;
    
        /**
         * Constructs a CIFS exception with no detail message.
         */
        public CIFSException() {
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/CIFSExceptionTest.java

    /**
     * Test class for CIFSException functionality
     */
    @DisplayName("CIFSException Tests")
    class CIFSExceptionTest extends BaseTest {
    
        @Test
        @DisplayName("Should create CIFSException with message")
        void testCIFSExceptionWithMessage() {
            // Given
            String message = "CIFS operation failed";
    
            // When
            CIFSException exception = new CIFSException(message);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbWatchHandleTest.java

        }
    
        /**
         * Test watch() method throwing CIFSException
         */
        @Test
        void testWatchThrowsCIFSException() throws CIFSException {
            // Setup mock behavior
            CIFSException expectedException = new CIFSException("Watch operation failed");
            when(watchHandle.watch()).thenThrow(expectedException);
    
            // Execute and verify
            CIFSException thrown = assertThrows(CIFSException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

                preauthService.validatePreauthIntegrity(sessionId, incorrectHash);
                fail("Expected CIFSException");
            } catch (CIFSException e) {
                // Expected
            }
    
            assertFalse(context.isValid());
    
            // Further operations on invalid context should fail
            assertThrows(CIFSException.class, () -> {
                preauthService.updatePreauthHash(sessionId, "test".getBytes());
            });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SSPContext.java

         * @return MIC
         * @throws CIFSException if an error occurs calculating the MIC
         */
        byte[] calculateMIC(byte[] data) throws CIFSException;
    
        /**
         * Verifies a Message Integrity Code (MIC) for the given data.
         * @param data the data to verify
         * @param mic the MIC to verify against
         * @throws CIFSException if the MIC verification fails or an error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbPipeHandleTest.java

         * Sets up the test environment before each test.
         * Initializes a mock {@link SmbPipeResource} and a mock implementation of {@link SmbPipeHandle}.
         * @throws CIFSException if an error occurs during setup.
         */
        @BeforeEach
        public void setUp() throws CIFSException {
            mockPipeResource = mock(SmbPipeResource.class);
            mockSmbPipeHandleInternal = mock(SmbPipeHandleInternal.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        }
    
        // Error path: overlaps may throw a CIFSException per signature
        @Test
        @DisplayName("overlaps throws CIFSException when implementation fails")
        void overlapsThrowsCifsException() throws Exception {
            when(locator.overlaps(any())).thenThrow(new CIFSException("Simulated failure"));
    
            CIFSException ex = assertThrows(CIFSException.class, () -> locator.overlaps(other));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.CIFSException;
    import jcifs.DialectVersion;
    import jcifs.ResolverType;
    import jcifs.SmbConstants;
    
    /**
     * Test class for BaseConfiguration
     */
    class BaseConfigurationTest {
    
        private BaseConfiguration config;
    
        @BeforeEach
        void setUp() throws CIFSException {
            config = new BaseConfiguration(false);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbTreeHandle.java

        /**
         * Gets the OEM domain name reported by the server
         * @return server reported domain name
         * @throws CIFSException if an error occurs retrieving the domain name
         */
        String getOEMDomainName() throws CIFSException;
    
        /**
         * Gets the name of the share this tree is connected to
         * @return the share we are connected to
         */
        String getConnectedShare();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            TestIterator iterator = new TestIterator(null);
    
            CIFSException ex = assertThrows(CIFSException.class, iterator::close);
            assertEquals("Close failed", ex.getMessage());
        }
    
        @Test
        @DisplayName("Remove delegates to underlying iterator")
        void removeDelegation() {
            when(delegate.hasNext()).thenReturn(false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top