Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 168 for CIFSException (0.51 seconds)

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

                when(locator.getURL()).thenReturn(new URL("file:/"));
                // Throw CIFSException with different cause
                CIFSException differentException = new CIFSException("different error");
                when(locator.getAddress()).thenThrow(differentException);
    
                // Act + Assert
                CIFSException thrown = assertThrows(CIFSException.class, () -> SmbEnumerationUtil.doEnum(parent, "*", 0, null, null));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java

    import java.util.Properties;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.CIFSException;
    import jcifs.config.PropertyConfiguration;
    
    /**
     * Test RDMA configuration properties
     */
    public class RdmaConfigurationTest {
    
        @Test
        public void testDefaultRdmaConfiguration() throws CIFSException {
            Properties props = new Properties();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        void testGetInputOutputAndClosed() throws CIFSException {
            // After closing the handle, further calls throw
            target.close();
            CIFSException e1 = assertThrows(SmbException.class, target::getInput);
            assertTrue(e1.getMessage().contains("Already closed"));
            CIFSException e2 = assertThrows(SmbException.class, target::getOutput);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  4. src/main/java/jcifs/context/BaseContext.java

            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws CIFSException if the URL is malformed or there is an error creating the SMB resource
         *
         * @see jcifs.CIFSContext#get(java.lang.String)
         */
        @Override
        public SmbResource get(final String url) throws CIFSException {
            try {
                return new SmbFile(url, this);
            } catch (final MalformedURLException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbSessionInternal.java

        boolean isInUse();
    
        /**
         * Returns the current session key used for signing and encryption.
         *
         * @return the current session key
         * @throws CIFSException if the session key cannot be retrieved
         */
        byte[] getSessionKey() throws CIFSException;
    
        /**
         * Returns the SMB transport associated with this session.
         *
         * @return the transport for this session
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/config/MultiChannelConfigurationTest.java

    import java.util.Properties;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.CIFSException;
    
    /**
     * Unit tests for Multi-Channel configuration properties
     */
    class MultiChannelConfigurationTest {
    
        @Test
        void testDefaultMultiChannelSettings() throws CIFSException {
            PropertyConfiguration config = new PropertyConfiguration(new Properties());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            assertThrows(CIFSException.class, () -> {
                compressionService.compress(testData, CompressionService.COMPRESSION_LZNT1);
            });
        }
    
        @Test
        @DisplayName("Test unsupported algorithm decompression")
        public void testUnsupportedAlgorithmDecompression() {
            assertThrows(CIFSException.class, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.Address;
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.CloseableIterator;
    import jcifs.ResourceFilter;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/context/SingletonContext.java

         *
         * @param props the properties to use for initialization
         * @throws CIFSException if the singleton context is already initialized or there is an error during initialization
         */
        public static synchronized final void init(final Properties props) throws CIFSException {
            if (INSTANCE != null) {
                throw new CIFSException("Singleton context is already initialized");
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            String malformedUrl = "invalid-url";
            CIFSException thrown = assertThrows(CIFSException.class, () -> {
                cifsContextWrapper.get(malformedUrl);
            });
            assertTrue(thrown.getMessage().contains("Invalid URL"));
            assertTrue(thrown.getCause() instanceof MalformedURLException);
        }
    
        @Test
        void testGetPipe() throws CIFSException, MalformedURLException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.7K bytes
    - Click Count (0)
Back to Top