Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 74 for CIFSException (0.33 seconds)

  1. 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, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  2. 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());
            });
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  3. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  4. src/test/java/jcifs/SidResolverTest.java

            doThrow(new CIFSException("Invalid offset")).when(sidResolver)
                    .resolveSids(any(CIFSContext.class), anyString(), any(SID[].class), eq(-1), anyInt());
    
            assertThrows(CIFSException.class, () -> sidResolver.resolveSids(mockContext, testServerName, testSids, -1, 2));
        }
    
        @Test
        void testResolveSidsWithOffsetAndLength_InvalidLength() throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/SmbResource.java

         *         <code>false</code> otherwise
         * @throws CIFSException if an error occurs accessing the resource
         */
        boolean exists() throws CIFSException;
    
        /**
         * Fetch a child resource
         *
         * @param name the name of the child resource to resolve
         * @return the child resource
         * @throws CIFSException if an error occurs accessing the resource
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  6. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import java.io.IOException;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSException;
    import jcifs.SmbConstants;
    import jcifs.SmbPipeHandle;
    import jcifs.SmbPipeResource;
    import jcifs.internal.smb1.trans.TransCallNamedPipe;
    import jcifs.internal.smb1.trans.TransCallNamedPipeResponse;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  7. 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);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/config/PropertyConfigurationTest.java

    import java.util.Properties;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    import jcifs.BaseTest;
    import jcifs.CIFSException;
    import jcifs.DialectVersion;
    import jcifs.ResolverType;
    
    /**
     * Test class for PropertyConfiguration functionality
     */
    @DisplayName("PropertyConfiguration Tests")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SpnegoContext.java

            } catch (final CIFSException e) {
                throw new CIFSException("Failed to verify mechanismListMIC", e);
            }
        }
    
        /**
         * @param mechs
         * @return
         * @throws CIFSException
         */
        private static byte[] encodeMechs(final ASN1ObjectIdentifier[] mechs) throws CIFSException {
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/SmbResourceTest.java

                assertEquals(1, existsExceptions.length, "exists() should declare CIFSException");
                assertEquals(CIFSException.class, existsExceptions[0], "Should declare CIFSException");
                assertEquals(1, getTypeExceptions.length, "getType() should declare CIFSException");
                assertEquals(CIFSException.class, getTypeExceptions[0], "Should declare CIFSException");
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
Back to Top