Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 170 for CIFSException (0.05 sec)

  1. src/test/java/jcifs/smb/SpnegoContextTest.java

        void testInitSecContextInvalidTokenType(byte firstByte) throws Exception {
            SpnegoContext ctx = newContext();
    
            // Invalid first byte should be rejected by token parsing
            CIFSException ex = assertThrows(CIFSException.class, () -> ctx.initSecContext(new byte[] { firstByte }, 0, 1));
            assertEquals("Invalid token", ex.getMessage());
    
            // Ensure mechContext was not engaged due to early failure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/AbstractCIFSContextTest.java

        }
    
        @Test
        void testClose() throws CIFSException {
            assertFalse(context.isCloseCalled());
    
            boolean result = context.close();
    
            assertFalse(result); // AbstractCIFSContext always returns false for close()
            assertTrue(context.isCloseCalled());
        }
    
        @Test
        void testRun_successfulClose() throws CIFSException {
            // Simulate the shutdown hook being run
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Close and verify subsequent calls throw
            handle.close();
            CIFSException ex1 = assertThrows(CIFSException.class, handle::getInput, "getInput after close must throw");
            assertTrue(ex1.getMessage().contains("Already closed"));
            CIFSException ex2 = assertThrows(CIFSException.class, handle::getOutput, "getOutput after close must throw");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

        }
    
        /**
         * Test close method propagates exception.
         */
        @Test
        void testCloseWithException() throws CIFSException {
            // Given
            when(mockDelegate.hasNext()).thenReturn(false);
            CIFSException exception = new CIFSException("Test exception");
            doThrow(exception).when(mockDelegate).close();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionImplTest.java

        void testGetSessionKey() throws Exception {
            SmbSessionImpl session = newSession();
    
            // Absent key -> CIFSException
            CIFSException noKey = assertThrows(CIFSException.class, session::getSessionKey);
            assertTrue(noKey.getMessage().contains("No session key"));
    
            // Set a key via reflection and verify retrieval
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/PropertyConfiguration.java

        /**
         * Create a configuration backed by properties
         *
         * @param props properties object containing JCIFS configuration settings
         * @throws CIFSException if configuration initialization fails
         */
        public PropertyConfiguration(Properties props) throws CIFSException {
            super(false);
            initFromProperties(props);
            initDefaults(); // Use original initDefaults
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        @Test
        @DisplayName("getDfsReferrals handles empty name via CIFSException")
        void getDfsReferrals_emptyName() throws Exception {
            String emptyName = "";
            doThrow(new jcifs.CIFSException("invalid dfs name")).when(transport)
                    .getDfsReferrals(eq(ctx), eq(emptyName), any(), any(), anyInt());
    
            assertThrows(jcifs.CIFSException.class, () -> transport.getDfsReferrals(ctx, emptyName, "h", "d", 1));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeInternal.java

         * @param request the request to send
         * @param params optional request parameters
         * @return response message
         * @throws CIFSException if an error occurs sending the request
         */
        <T extends CommonServerMessageBlockResponse> T send(Request<T> request, RequestParam... params) throws 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)
  10. src/test/java/jcifs/EmptyIteratorTest.java

        void testCloseDoesNotThrowException() {
            // When & Then
            assertDoesNotThrow(() -> {
                try {
                    emptyIterator.close();
                } catch (CIFSException e) {
                    throw new RuntimeException(e);
                }
            }, "close() should not throw any exception");
        }
    
        @Test
        @DisplayName("remove should not throw any exception")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top